blob: b23544f6da15ab6ce3618f4067dd5c41fb94bf53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
*/
|