diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/HTransWidget.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/HTransWidget.java')
| -rw-r--r-- | NET/worlds/scape/HTransWidget.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/NET/worlds/scape/HTransWidget.java b/NET/worlds/scape/HTransWidget.java new file mode 100644 index 0000000..b23544f --- /dev/null +++ b/NET/worlds/scape/HTransWidget.java @@ -0,0 +1,44 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.Console; +/* */ import NET.worlds.console.SnapTool; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class HTransWidget +/* */ extends WidgetButton +/* */ { +/* */ private static final long serialVersionUID = 1L; +/* */ +/* */ public HTransWidget(ToolBar toolbar) +/* */ { +/* 25 */ super(toolbar, "htrans.gif", Console.message("Move-horiz")); +/* */ } +/* */ +/* */ public String drag(boolean initialDrag, float deltax, float deltay) +/* */ { +/* 30 */ Transform t = Transform.make(); +/* 31 */ applyWorldTransform(initialDrag, +/* 32 */ t.moveBy(SnapTool.snapTool().snapTo( +/* 33 */ getWorldAxis(1, 0, 0).times(deltax).plus( +/* 34 */ getWorldAxis(0, 1, 0).times(deltay))))); +/* 35 */ t.recycle(); +/* 36 */ return getWObject().getPosition(); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\HTransWidget.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |