summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/PitchWidget.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/PitchWidget.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/PitchWidget.java')
-rw-r--r--NET/worlds/scape/PitchWidget.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/NET/worlds/scape/PitchWidget.java b/NET/worlds/scape/PitchWidget.java
new file mode 100644
index 0000000..cd3dc05
--- /dev/null
+++ b/NET/worlds/scape/PitchWidget.java
@@ -0,0 +1,38 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ class PitchWidget
+/* */ extends WidgetButton
+/* */ {
+/* */ private static final long serialVersionUID = 1L;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public PitchWidget(ToolBar toolbar)
+/* */ {
+/* 19 */ super(toolbar, "pitch.gif", "Pitch");
+/* */ }
+/* */
+/* */ public String drag(boolean initialDrag, float deltax, float deltay)
+/* */ {
+/* 24 */ if (Math.abs(deltax) > Math.abs(deltay))
+/* 25 */ deltay = 0.0F;
+/* 26 */ Transform t = Transform.make();
+/* 27 */ applyWorldTransform(initialDrag,
+/* 28 */ t.spin(getWorldAxis(1, 0, 0), -deltay));
+/* 29 */ t.recycle();
+/* 30 */ return "Pitch";
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PitchWidget.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file