Skip to content

Commit 159fc66

Browse files
committed
refactor: rename 2d world drawing functions
1 parent f784b14 commit 159fc66

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ public class Class33 {
2121
public static int[] selectedMenuActions = new int[500];
2222

2323

24-
public static void method404() {
24+
/**
25+
* Renders headicons, chat, healthbar, hitsplats, etc.
26+
*
27+
* Anything that is a 2D item attached to an actor in the world.
28+
*/
29+
public static void draw2DActorAttachments() {
2530
SceneCluster.anInt770 = 0;
2631
for(int i = -1; Player.localPlayerCount + Player.npcCount > i; i++) {
2732
Actor actor;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,8 @@ public static void method353() {
867867

868868
Npc.currentScene.render(activeCamera, i);
869869
Npc.currentScene.clearInteractiveObjectCache();
870-
Class33.method404();
871-
MovedStatics.method450();
870+
Class33.draw2DActorAttachments();
871+
MovedStatics.drawPositionHintIcon();
872872
((Class35) Rasterizer3D.interface3).method425(MovedStatics.anInt199);
873873
KeyFocusListener.draw3dScreen();
874874

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,10 @@ public static void method311(Component arg1) {
19511951
arg1.removeFocusListener(Class59.keyFocusListener);
19521952
}
19531953

1954-
public static void method450() {
1954+
/**
1955+
* Draws the 2d yellow arrow hint icon in the world.
1956+
*/
1957+
public static void drawPositionHintIcon() {
19551958
if (Player.headIconDrawType != 2) {
19561959
return;
19571960
}

0 commit comments

Comments
 (0)