Add Virtual Levels plugin

This plugin displays the virtual level in the denominator of given
skills, and the virtual total level on the skills tab.

Fixes runelite/runelite#375

Co-authored-by: Joshua Filby <joshua@filby.me>
This commit is contained in:
Jordan Atwood
2018-09-17 19:33:29 -07:00
committed by Adam
parent 2b27e2163c
commit b81954cd60
5 changed files with 576 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
.id 396
.int_stack_count 2
.string_stack_count 0
.int_var_count 2
.string_var_count 2
load_string "Total level:"
load_string "<br>"
invoke 1007
int_to_string
string_append 3
iload 0
load_string "skillTabTotalLevel" ; push event name
runelite_callback ; invoke callback
widget_put_text_widget
iload 0
widget_put_actions_null_widget
load_string "Total XP:"
sstore 0
invoke 1008
invoke 1009
sstore 1
invoke 1972
load_int 1
if_icmpeq LABEL18
jump LABEL49
LABEL18:
load_int 1
load_string "Toggle Total XP"
iload 0
widget_put_action_widget
load_int 2367
load_int -2147483644
load_int -2147483645
load_int -1
iload 1
sload 0
sload 1
load_int 495
load_string "iIiIssf"
iload 0
widget_put_option_click_listener_widget
get_varc 218
iload 0
if_icmpeq LABEL37
jump LABEL48
LABEL37:
get_varc 217
load_int -1
if_icmpeq LABEL41
jump LABEL48
LABEL41:
iload 0
load_int -1
iload 1
sload 0
sload 1
load_int 495
invoke 2344
LABEL48:
jump LABEL69
LABEL49:
load_int 992
load_int -2147483645
load_int -1
iload 1
sload 0
sload 1
load_int 495
load_int 25
load_int 5
idiv
load_string "IiIssfi"
iload 0
widget_put_mouse_hover_listener_widget
load_int 40
iload 1
load_string "I"
iload 0
widget_put_mouse_exit_listener_widget
load_int 0
put_varc 2
LABEL69:
return