1
1
package org .runejs .client ;
2
2
3
- import org .runejs .client .cache .def .ItemDefinition ;
4
- import org .runejs .client .cache .def .OverlayDefinition ;
5
3
import org .runejs .client .cache .media .TypeFace ;
6
4
import org .runejs .client .cache .media .gameInterface .GameInterface ;
7
5
import org .runejs .client .cache .media .gameInterface .GameInterfaceArea ;
@@ -69,7 +67,7 @@ public static void processRightClick() {
69
67
if (GameInterface .fullscreenInterfaceId == -1 ) {
70
68
MovedStatics .method445 ();
71
69
Item .anInt3065 = -1 ;
72
- OverlayDefinition .hoveredWidgetChildId = -1 ;
70
+ MovedStatics .hoveredWidgetChildId = -1 ;
73
71
boolean bool = false ;
74
72
// Right game screen
75
73
if (ScreenController .isCoordinatesIn3dScreen (MouseHandler .mouseX , MouseHandler .mouseY )) {
@@ -87,18 +85,18 @@ public static void processRightClick() {
87
85
}
88
86
89
87
MovedStatics .anInt573 = Item .anInt3065 ;
90
- ItemDefinition .anInt2850 = OverlayDefinition .hoveredWidgetChildId ;
88
+ MovedStatics .anInt2850 = MovedStatics .hoveredWidgetChildId ;
91
89
Item .anInt3065 = -1 ;
92
- OverlayDefinition .hoveredWidgetChildId = -1 ;
90
+ MovedStatics .hoveredWidgetChildId = -1 ;
93
91
// Right click tab
94
92
if (ScreenController .isCoordinatesInTabArea (MouseHandler .mouseX , MouseHandler .mouseY )) {
95
93
ScreenController .handleTabClick (MouseHandler .mouseX , MouseHandler .mouseY );
96
94
}
97
- if (OverlayDefinition .hoveredWidgetChildId != CollisionMap .currentHoveredWidgetChildId ) {
95
+ if (MovedStatics .hoveredWidgetChildId != CollisionMap .currentHoveredWidgetChildId ) {
98
96
GameInterface .redrawTabArea = true ;
99
- CollisionMap .currentHoveredWidgetChildId = OverlayDefinition .hoveredWidgetChildId ;
97
+ CollisionMap .currentHoveredWidgetChildId = MovedStatics .hoveredWidgetChildId ;
100
98
}
101
- OverlayDefinition .hoveredWidgetChildId = -1 ;
99
+ MovedStatics .hoveredWidgetChildId = -1 ;
102
100
if (Item .anInt3065 != FloorDecoration .anInt614 ) {
103
101
FloorDecoration .anInt614 = Item .anInt3065 ;
104
102
GameInterface .redrawTabArea = true ;
@@ -110,9 +108,9 @@ public static void processRightClick() {
110
108
}
111
109
112
110
// Set hovering for chat widgets
113
- if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && Class55 .currentHoveredChatboxWidgetChildId != OverlayDefinition .hoveredWidgetChildId ) {
111
+ if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && Class55 .currentHoveredChatboxWidgetChildId != MovedStatics .hoveredWidgetChildId ) {
114
112
ChatBox .redrawChatbox = true ;
115
- Class55 .currentHoveredChatboxWidgetChildId = OverlayDefinition .hoveredWidgetChildId ;
113
+ Class55 .currentHoveredChatboxWidgetChildId = MovedStatics .hoveredWidgetChildId ;
116
114
}
117
115
118
116
if ((GameInterface .chatboxInterfaceId != -1 || ChatBox .dialogueId != -1 ) && Item .anInt3065 != MovedStatics .anInt1586 ) {
@@ -144,9 +142,9 @@ public static void processRightClick() {
144
142
}
145
143
} else {
146
144
Item .anInt3065 = -1 ;
147
- OverlayDefinition .hoveredWidgetChildId = -1 ;
145
+ MovedStatics .hoveredWidgetChildId = -1 ;
148
146
Class13 .handleInterfaceActions (GameInterfaceArea .GAME_AREA , MouseHandler .mouseX , MouseHandler .mouseY , 0 , 0 , 765 , 503 , GameInterface .fullscreenInterfaceId );
149
- ItemDefinition .anInt2850 = OverlayDefinition .hoveredWidgetChildId ;
147
+ MovedStatics .anInt2850 = MovedStatics .hoveredWidgetChildId ;
150
148
MovedStatics .anInt573 = Item .anInt3065 ;
151
149
}
152
150
}
0 commit comments