rl-client: cleanup cs2 overlays

This commit is contained in:
Max Weber
2021-05-22 10:30:59 -06:00
committed by Adam
parent cb0d98bbc8
commit 939852f135
7 changed files with 20 additions and 21 deletions

View File

@@ -342,8 +342,7 @@ public class FriendNotesPlugin extends Plugin
switch (event.getEventName()) switch (event.getEventName())
{ {
case "friend_cc_settext": case "friendsChatSetText":
case "ignore_cc_settext":
String[] stringStack = client.getStringStack(); String[] stringStack = client.getStringStack();
int stringStackSize = client.getStringStackSize(); int stringStackSize = client.getStringStackSize();
final String rsn = stringStack[stringStackSize - 1]; final String rsn = stringStack[stringStackSize - 1];
@@ -354,8 +353,7 @@ public class FriendNotesPlugin extends Plugin
stringStack[stringStackSize - 1] = rsn + " <img=" + iconIdx + ">"; stringStack[stringStackSize - 1] = rsn + " <img=" + iconIdx + ">";
} }
break; break;
case "friend_cc_setposition": case "friendsChatSetPosition":
case "ignore_cc_setposition":
if (currentlyLayouting == null || getFriendNote(currentlyLayouting) == null) if (currentlyLayouting == null || getFriendNote(currentlyLayouting) == null)
{ {
return; return;

View File

@@ -10,9 +10,9 @@
pop_int ; pop chat type pop_int ; pop chat type
string_length ; get string length of chat message string_length ; get string length of chat message
iconst 0 ; load 0 iconst 0 ; load 0
if_icmpne LABEL100 ; if length is not 0, continue if_icmpne CONTINUE ; if length is not 0, continue
return return
LABEL100: CONTINUE:
get_varbit 4394 get_varbit 4394
iconst 1 iconst 1
if_icmpeq LABEL4 if_icmpeq LABEL4

View File

@@ -3,10 +3,10 @@
.string_stack_count 0 .string_stack_count 0
.int_var_count 16 .int_var_count 16
.string_var_count 2 .string_var_count 2
; callback "friend_cc_settext" ; callback "friendsChatSetText"
; Fired just before the client pops the name off the stack ; Fired just before the client pops the name off the stack
; Modified by the friendnotes plugin to show the icon ; Modified by the friendnotes plugin to show the icon
; callback "friend_cc_setposition" ; callback "friendsChatSetPosition"
; Fired just before the client sets the position of "friend changed their name" icon ; Fired just before the client sets the position of "friend changed their name" icon
; Modified by the friendnotes plugin to offset the name changed icon ; Modified by the friendnotes plugin to offset the name changed icon
iload 1 iload 1
@@ -300,7 +300,7 @@ LABEL234:
add add
istore 10 istore 10
sload 0 sload 0
sconst "friend_cc_settext" sconst "friendsChatSetText"
runelite_callback runelite_callback
cc_settext cc_settext
iconst 0 iconst 0
@@ -382,7 +382,7 @@ LABEL293:
add add
iconst 0 iconst 0
iconst 0 iconst 0
sconst "friend_cc_setposition" sconst "friendsChatSetPosition"
runelite_callback runelite_callback
cc_setposition 1 cc_setposition 1
iconst 1093 iconst 1093

View File

@@ -10,6 +10,7 @@
iconst 1 iconst 1
if_icmpeq LABEL4 if_icmpeq LABEL4
jump CONFIRM_KICK ; Jump to our new label instead jump CONFIRM_KICK ; Jump to our new label instead
jump LABEL7
LABEL4: LABEL4:
sconst "You can't kick players from your team during Wilderness Wars." sconst "You can't kick players from your team during Wilderness Wars."
mes mes
@@ -20,8 +21,7 @@ LABEL7:
invoke 96 invoke 96
sload 0 sload 0
clan_kickuser clan_kickuser
jump LABEL73 RETURN:
LABEL73:
return return
CONFIRM_KICK: CONFIRM_KICK:
sload 0 ; Username we are trying to kick sload 0 ; Username we are trying to kick
@@ -30,5 +30,5 @@ CONFIRM_KICK:
runelite_callback runelite_callback
pop_string ; Pop username pop_string ; Pop username
iconst 0 ; Compare against zero iconst 0 ; Compare against zero
if_icmpgt LABEL73 ; Early return for chatbox panel confirmation if_icmpgt RETURN ; Early return for chatbox panel confirmation
jump LABEL7 jump LABEL7

View File

@@ -3,10 +3,10 @@
.string_stack_count 0 .string_stack_count 0
.int_var_count 13 .int_var_count 13
.string_var_count 2 .string_var_count 2
; callback "ignore_cc_settext" ; callback "friendsChatSetText"
; Fired just before the client pops the name off the stack ; Fired just before the client pops the name off the stack
; Modified by the friendnotes plugin to show the icon ; Modified by the friendnotes plugin to show the icon
; callback "ignore_cc_setposition" ; callback "friendsChatSetPosition"
; Fired just before the client sets the position of "ignored person changed their name" icon ; Fired just before the client sets the position of "ignored person changed their name" icon
; Modified by the friendnotes plugin to offset the name changed icon ; Modified by the friendnotes plugin to offset the name changed icon
iload 1 iload 1
@@ -157,7 +157,7 @@ LABEL117:
add add
istore 8 istore 8
sload 0 sload 0
sconst "ignore_cc_settext" sconst "friendsChatSetText"
runelite_callback runelite_callback
cc_settext cc_settext
iconst 0 iconst 0
@@ -216,7 +216,7 @@ LABEL117:
add add
iconst 0 iconst 0
iconst 0 iconst 0
sconst "ignore_cc_setposition" sconst "friendsChatSetPosition"
runelite_callback runelite_callback
cc_setposition 1 cc_setposition 1
iconst 1093 iconst 1093

View File

@@ -43,7 +43,8 @@ LABEL9:
sconst "forceStackStones" ; push event name sconst "forceStackStones" ; push event name
runelite_callback ; invoke callback runelite_callback ; invoke callback
iconst 0 ; if 0 is returned, continue normal layout iconst 0 ; if 0 is returned, continue normal layout
if_icmpeq LABEL49 if_icmpne LABEL29
jump LABEL49
LABEL29: LABEL29:
iconst 0 iconst 0
iload 3 iload 3

View File

@@ -9,12 +9,12 @@
iconst 0 ; load active boolean iconst 0 ; load active boolean
sconst "getSearchingTagTab" ; push event name sconst "getSearchingTagTab" ; push event name
runelite_callback ; invoke callback runelite_callback ; invoke callback
if_icmpne LABEL2 if_icmpne RELAYOUT
; Let layout continue if current bank tab is 0 ; Let layout continue if current bank tab is 0
get_varbit 4150 get_varbit 4150
iconst 0 iconst 0
if_icmpeq LABEL2 if_icmpeq RELAYOUT
; Reset the current bank tab to 0 otherwise ; Reset the current bank tab to 0 otherwise
iconst 0 iconst 0
@@ -24,7 +24,7 @@
sconst "debug" sconst "debug"
runelite_callback runelite_callback
LABEL2: RELAYOUT:
iload 0 iload 0
iload 1 iload 1
iload 2 iload 2