Skip to content

Commit 44fc749

Browse files
committed
refactor: move drawTabGraphics to MovedStatics
1 parent f176a59 commit 44fc749

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

src/main/java/org/runejs/client/Class43.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ else if(ScreenController.frameMode == ScreenMode.FIXED)
4848
}
4949

5050
if(ScreenController.frameMode == ScreenMode.FIXED) {
51-
Class55.drawTabGraphics();
51+
MovedStatics.drawTabGraphics();
5252
}
5353
}
5454

src/main/java/org/runejs/client/Class55.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.runejs.client;
22

3-
import org.runejs.client.input.MouseHandler;
4-
5-
import java.awt.*;
63
import java.io.*;
74

85
public class Class55 {
@@ -60,13 +57,4 @@ public static Class40_Sub5_Sub15 method960(int arg1) {
6057
}
6158

6259

63-
public static void drawTabGraphics() {
64-
try {
65-
Graphics graphics = MouseHandler.gameCanvas.getGraphics();
66-
MovedStatics.tabImageProducer.drawGraphics(553, 205, graphics);
67-
} catch(Exception exception) {
68-
MouseHandler.gameCanvas.repaint();
69-
}
70-
}
71-
7260
}

src/main/java/org/runejs/client/MovedStatics.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ public static void method940(String arg1, boolean arg2, String arg3) {
26352635
clearScreen = false;
26362636
drawWelcomeScreenGraphics();
26372637
LinkedList.drawChatBoxGraphics();
2638-
Class55.drawTabGraphics();
2638+
drawTabGraphics();
26392639
ActorDefinition.drawMapBack();
26402640
Game.method943(ChatBox.tradeMode, fontNormal, ChatBox.privateChatMode, ChatBox.publicChatMode);
26412641
method527(Player.currentTabId, Player.tabWidgetIds, GameInterface.tabAreaInterfaceId == -1, -1);
@@ -2747,4 +2747,13 @@ else if (Game.widgetSelected != 1 || menuActionRow >= 2)
27472747
TypeFace.fontBold.drawShadowedSeededAlphaString(class1, 4, 15, 16777215, true, pulseCycle / 1000);
27482748
}
27492749
}
2750+
2751+
public static void drawTabGraphics() {
2752+
try {
2753+
Graphics graphics = MouseHandler.gameCanvas.getGraphics();
2754+
tabImageProducer.drawGraphics(553, 205, graphics);
2755+
} catch(Exception exception) {
2756+
MouseHandler.gameCanvas.repaint();
2757+
}
2758+
}
27502759
}

0 commit comments

Comments
 (0)