12
12
import org .runejs .client .media .renderable .actor .Player ;
13
13
import org .runejs .client .message .outbound .chat .SetChatOptionsOutboundMessage ;
14
14
import org .runejs .client .net .OutgoingPackets ;
15
- import org .runejs .client .scene .*;
16
15
import org .runejs .client .*;
17
16
18
17
import java .awt .*;
@@ -125,14 +124,17 @@ public static void setBounds() {
125
124
}
126
125
}
127
126
127
+ /**
128
+ * TODO (jkm) move all this to ResizableFrameRenderer
129
+ */
128
130
public static void RenderResizableUI () {
129
131
if (drawingThread == null ) {
130
- renderer = new FrameRenderer (minimap , tabProducer );
132
+ renderer = new ResizableFrameRenderer (minimap , tabProducer );
131
133
drawingThread = new Thread (renderer );
132
134
drawingThread .start ();
133
135
}
134
136
minimap .drawResizableMiniMapArea (drawWidth - 210 , 0 );
135
- // RenderTabArea(drawWidth - 234, drawHeight - (337));
137
+ RenderTabArea (drawWidth - 234 , drawHeight - (337 ));
136
138
RenderChatArea (0 , drawHeight - (162 ));
137
139
138
140
tabProducer .drawResizableSideBarArea (drawWidth - 241 , drawHeight - (334 ));
@@ -198,6 +200,9 @@ public static Dimension getInnerSize(Frame frame) {
198
200
return size ;
199
201
}
200
202
203
+ /**
204
+ * TODO (jkm) move all this to ResizableFrameRenderer
205
+ */
201
206
public static void RenderTabArea (int x , int y ) {
202
207
// height 337
203
208
// width 234
@@ -208,10 +213,11 @@ public static void RenderTabArea(int x, int y) {
208
213
drawFramePieceCutout (MovedStatics .tabBottom , x , y + 300 , MovedStatics .tabBottom .width - 35 , MovedStatics .tabBottom .height , 35 , 0 );
209
214
drawFramePieceCutout (MovedStatics .tabTop , x , y , MovedStatics .tabTop .width - 15 , MovedStatics .tabTop .height - 6 , 15 , 6 );
210
215
drawFramePiece (MovedStatics .tabImageProducer , x + 22 , y + 39 );
211
-
212
-
213
216
}
214
217
218
+ /**
219
+ * TODO (jkm) move all this to ResizableFrameRenderer
220
+ */
215
221
public static void RenderChatArea (int x , int y ) {
216
222
//width 516
217
223
//height 184
@@ -223,8 +229,6 @@ public static void RenderChatArea(int x, int y) {
223
229
// System.out.println(Class40_Sub5_Sub1.chatboxRight.height + (Class17.chatboxTop.height-3) + HuffmanEncoding.aProducingGraphicsBuffer_1541.height);
224
230
225
231
drawFramePieceCutout (MovedStatics .tabPieveLowerRight , x + 496 , y + 16 , 20 , MovedStatics .tabPieveLowerRight .height , 0 , 0 );
226
-
227
-
228
232
}
229
233
230
234
public static void drawFramePiece (ProducingGraphicsBuffer framePiece , int x , int y ) {
@@ -235,7 +239,6 @@ public static void drawFramePieceCutout(ProducingGraphicsBuffer framePiece, int
235
239
Rasterizer .copyPixelsCutOff (framePiece .pixels , framePiece .width , framePiece .height , x , y , width , height , offsetX , offsetY );
236
240
}
237
241
238
-
239
242
public static boolean isCoordinatesIn3dScreen (int x , int y ) {
240
243
if (frameMode == ScreenMode .FIXED ) {
241
244
return x > 4 && y > 4 && x < 516 && y < 338 ;
0 commit comments