diff options
Diffstat (limited to 'NET/worlds/scape/YawWidget.java')
| -rw-r--r-- | NET/worlds/scape/YawWidget.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/NET/worlds/scape/YawWidget.java b/NET/worlds/scape/YawWidget.java new file mode 100644 index 0000000..d4befb5 --- /dev/null +++ b/NET/worlds/scape/YawWidget.java @@ -0,0 +1,41 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.Console; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class YawWidget +/* */ extends WidgetButton +/* */ { +/* */ private static final long serialVersionUID = 1L; +/* */ +/* */ public YawWidget(ToolBar toolbar) +/* */ { +/* 22 */ super(toolbar, "yaw.gif", Console.message("Yaw")); +/* */ } +/* */ +/* */ public String drag(boolean initialDrag, float deltax, float deltay) +/* */ { +/* 27 */ if (Math.abs(deltay) > Math.abs(deltax)) +/* 28 */ deltax = 0.0F; +/* 29 */ Transform t = Transform.make(); +/* 30 */ applyWorldTransform(initialDrag, +/* 31 */ t.spin(getWorldAxis(0, 0, 1), deltax)); +/* 32 */ t.recycle(); +/* 33 */ return "Yaw"; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\YawWidget.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |