diff options
Diffstat (limited to 'NET/worlds/scape/PitchWidget.java')
| -rw-r--r-- | NET/worlds/scape/PitchWidget.java | 38 |
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 |