10
10
import org .runejs .client .language .English ;
11
11
import org .runejs .client .language .Native ;
12
12
import org .runejs .client .media .Rasterizer ;
13
- import org .runejs .client .media .VertexNormal ;
14
- import org .runejs .client .media .renderable .Item ;
15
13
import org .runejs .client .media .renderable .actor .Player ;
16
- import org .runejs .client .scene .InteractiveObject ;
17
- import org .runejs .client .scene .util .CollisionMap ;
18
14
19
15
public class Class43 {
20
16
public static LinkedList projectileQueue = new LinkedList ();
@@ -52,19 +48,19 @@ else if(ScreenController.frameMode == ScreenMode.FIXED)
52
48
}
53
49
54
50
if (ScreenController .frameMode == ScreenMode .FIXED ) {
55
- Class55 .drawTabGraphics ();
51
+ MovedStatics .drawTabGraphics ();
56
52
}
57
53
}
58
54
59
55
60
56
public static void processRightClick () {
61
57
if (MovedStatics .activeInterfaceType == 0 ) {
62
- Landscape .menuActionTexts [0 ] = English .cancel ;
58
+ MovedStatics .menuActionTexts [0 ] = English .cancel ;
63
59
MovedStatics .menuActionTypes [0 ] = ActionRowType .CANCEL .getId ();
64
60
MovedStatics .menuActionRow = 1 ;
65
61
if (GameInterface .fullscreenInterfaceId == -1 ) {
66
62
MovedStatics .method445 ();
67
- Item .anInt3065 = -1 ;
63
+ MovedStatics .anInt3065 = -1 ;
68
64
MovedStatics .hoveredWidgetChildId = -1 ;
69
65
boolean bool = false ;
70
66
// Right game screen
@@ -82,88 +78,88 @@ public static void processRightClick() {
82
78
}
83
79
}
84
80
85
- MovedStatics .anInt573 = Item .anInt3065 ;
81
+ MovedStatics .anInt573 = MovedStatics .anInt3065 ;
86
82
MovedStatics .anInt2850 = MovedStatics .hoveredWidgetChildId ;
87
- Item .anInt3065 = -1 ;
83
+ MovedStatics .anInt3065 = -1 ;
88
84
MovedStatics .hoveredWidgetChildId = -1 ;
89
85
// Right click tab
90
86
if (ScreenController .isCoordinatesInTabArea (MouseHandler .mouseX , MouseHandler .mouseY )) {
91
87
ScreenController .handleTabClick (MouseHandler .mouseX , MouseHandler .mouseY );
92
88
}
93
- if (MovedStatics .hoveredWidgetChildId != CollisionMap .currentHoveredWidgetChildId ) {
89
+ if (MovedStatics .hoveredWidgetChildId != MovedStatics .currentHoveredWidgetChildId ) {
94
90
GameInterface .redrawTabArea = true ;
95
- CollisionMap .currentHoveredWidgetChildId = MovedStatics .hoveredWidgetChildId ;
91
+ MovedStatics .currentHoveredWidgetChildId = MovedStatics .hoveredWidgetChildId ;
96
92
}
97
93
MovedStatics .hoveredWidgetChildId = -1 ;
98
- if (Item .anInt3065 != MovedStatics .anInt614 ) {
99
- MovedStatics .anInt614 = Item .anInt3065 ;
94
+ if (MovedStatics .anInt3065 != MovedStatics .anInt614 ) {
95
+ MovedStatics .anInt614 = MovedStatics .anInt3065 ;
100
96
GameInterface .redrawTabArea = true ;
101
97
}
102
- Item .anInt3065 = -1 ;
98
+ MovedStatics .anInt3065 = -1 ;
103
99
// right click chatbox
104
100
if (ScreenController .isCoordinatesInChatArea (MouseHandler .mouseX , MouseHandler .mouseY )) {
105
101
ScreenController .handleChatBoxMouse (MouseHandler .mouseX , MouseHandler .mouseY );
106
102
}
107
103
108
104
// Set hovering for chat widgets
109
- if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && Class55 .currentHoveredChatboxWidgetChildId != MovedStatics .hoveredWidgetChildId ) {
105
+ if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && MovedStatics .currentHoveredChatboxWidgetChildId != MovedStatics .hoveredWidgetChildId ) {
110
106
ChatBox .redrawChatbox = true ;
111
- Class55 .currentHoveredChatboxWidgetChildId = MovedStatics .hoveredWidgetChildId ;
107
+ MovedStatics .currentHoveredChatboxWidgetChildId = MovedStatics .hoveredWidgetChildId ;
112
108
}
113
109
114
- if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && Item .anInt3065 != MovedStatics .anInt1586 ) {
110
+ if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && MovedStatics .anInt3065 != MovedStatics .anInt1586 ) {
115
111
ChatBox .redrawChatbox = true ;
116
- MovedStatics .anInt1586 = Item .anInt3065 ;
112
+ MovedStatics .anInt1586 = MovedStatics .anInt3065 ;
117
113
}
118
114
while (!bool ) {
119
115
bool = true ;
120
116
for (int i = 0 ; -1 + MovedStatics .menuActionRow > i ; i ++) {
121
117
if (MovedStatics .menuActionTypes [i ] < 1000 && MovedStatics .menuActionTypes [1 + i ] > 1000 ) {
122
118
bool = false ;
123
- String class1 = Landscape .menuActionTexts [i ];
124
- Landscape .menuActionTexts [i ] = Landscape .menuActionTexts [i + 1 ];
125
- Landscape .menuActionTexts [i + 1 ] = class1 ;
119
+ String class1 = MovedStatics .menuActionTexts [i ];
120
+ MovedStatics .menuActionTexts [i ] = MovedStatics .menuActionTexts [i + 1 ];
121
+ MovedStatics .menuActionTexts [i + 1 ] = class1 ;
126
122
int i_90_ = MovedStatics .menuActionTypes [i ];
127
123
MovedStatics .menuActionTypes [i ] = MovedStatics .menuActionTypes [i + 1 ];
128
124
MovedStatics .menuActionTypes [i + 1 ] = i_90_ ;
129
- i_90_ = InteractiveObject .firstMenuOperand [i ];
130
- InteractiveObject .firstMenuOperand [i ] = InteractiveObject .firstMenuOperand [1 + i ];
131
- InteractiveObject .firstMenuOperand [1 + i ] = i_90_ ;
132
- i_90_ = Class59 .secondMenuOperand [i ];
133
- Class59 .secondMenuOperand [i ] = Class59 .secondMenuOperand [1 + i ];
134
- Class59 .secondMenuOperand [i + 1 ] = i_90_ ;
135
- i_90_ = Class33 .selectedMenuActions [i ];
136
- Class33 .selectedMenuActions [i ] = Class33 .selectedMenuActions [i + 1 ];
137
- Class33 .selectedMenuActions [1 + i ] = i_90_ ;
125
+ i_90_ = MovedStatics .firstMenuOperand [i ];
126
+ MovedStatics .firstMenuOperand [i ] = MovedStatics .firstMenuOperand [1 + i ];
127
+ MovedStatics .firstMenuOperand [1 + i ] = i_90_ ;
128
+ i_90_ = MovedStatics .secondMenuOperand [i ];
129
+ MovedStatics .secondMenuOperand [i ] = MovedStatics .secondMenuOperand [1 + i ];
130
+ MovedStatics .secondMenuOperand [i + 1 ] = i_90_ ;
131
+ i_90_ = MovedStatics .selectedMenuActions [i ];
132
+ MovedStatics .selectedMenuActions [i ] = MovedStatics .selectedMenuActions [i + 1 ];
133
+ MovedStatics .selectedMenuActions [1 + i ] = i_90_ ;
138
134
}
139
135
}
140
136
}
141
137
} else {
142
- Item .anInt3065 = -1 ;
138
+ MovedStatics .anInt3065 = -1 ;
143
139
MovedStatics .hoveredWidgetChildId = -1 ;
144
140
Class13 .handleInterfaceActions (GameInterfaceArea .GAME_AREA , MouseHandler .mouseX , MouseHandler .mouseY , 0 , 0 , 765 , 503 , GameInterface .fullscreenInterfaceId );
145
141
MovedStatics .anInt2850 = MovedStatics .hoveredWidgetChildId ;
146
- MovedStatics .anInt573 = Item .anInt3065 ;
142
+ MovedStatics .anInt573 = MovedStatics .anInt3065 ;
147
143
}
148
144
}
149
145
}
150
146
151
147
public static void method398 () {
152
148
String class1 = null ;
153
149
for (int i = 0 ; MovedStatics .menuActionRow > i ; i ++) {
154
- if (Landscape .menuActionTexts [i ].contains (Native .lightRed )) {
155
- class1 = Landscape .menuActionTexts [i ].substring (Landscape .menuActionTexts [i ].indexOf (Native .lightRed ));
150
+ if (MovedStatics .menuActionTexts [i ].contains (Native .lightRed )) {
151
+ class1 = MovedStatics .menuActionTexts [i ].substring (MovedStatics .menuActionTexts [i ].indexOf (Native .lightRed ));
156
152
break ;
157
153
}
158
154
}
159
155
if (class1 == null )
160
156
MovedStatics .drawMenu (0 ,0 );
161
157
else {
162
- int i = VertexNormal .menuWidth ;
163
- int i_0_ = InteractiveObject .menuOffsetX ;
158
+ int i = MovedStatics .menuWidth ;
159
+ int i_0_ = MovedStatics .menuOffsetX ;
164
160
if (i > 190 )
165
161
i = 190 ;
166
- int i_1_ = CollisionMap .menuHeight ;
162
+ int i_1_ = MovedStatics .menuHeight ;
167
163
int i_2_ = Game .menuOffsetY ;
168
164
if (i_0_ < 0 )
169
165
i_0_ = 0 ;
@@ -188,7 +184,7 @@ public static void method398() {
188
184
}
189
185
for (int i_6_ = 0 ; i_6_ < MovedStatics .menuActionRow ; i_6_ ++) {
190
186
int i_7_ = 31 + i_2_ + (MovedStatics .menuActionRow + -1 + -i_6_ ) * 15 ;
191
- String class1_8_ = Landscape .menuActionTexts [i_6_ ];
187
+ String class1_8_ = MovedStatics .menuActionTexts [i_6_ ];
192
188
int i_9_ = 16777215 ;
193
189
if (class1_8_ .endsWith (class1 )) {
194
190
class1_8_ = class1_8_ .substring (0 , class1_8_ .length () - class1 .length ());
0 commit comments