ge plugin: compact buy offer examine text

The examine text, buy limit, trade price, and fee info does not fit on
the interface anymore since the addition of the fee info. This compacts
the examine text as well as places the limit / trade price on the same
line in order to prevent pushing the fee off of the bottom of the
border.
This commit is contained in:
Adam
2021-12-11 21:12:51 -05:00
parent a0c14cf06a
commit e956ed1ba7
3 changed files with 233 additions and 68 deletions

View File

@@ -0,0 +1 @@
157D0FE4248A0C0CAC825733A8DE7B0FA5A93451A9FCE3A4B1D8BFD54038B970

View File

@@ -0,0 +1,167 @@
; script used to position the ge buy offer "Convenience fee" info icon as well as set the
; examine text
; component0 = text component for the examine text
; component1 = parent of the info icon
; string0 = item examine
; string1 = Convenience fee text
.id 5730
.int_stack_count 2
.string_stack_count 2
.int_var_count 5
.string_var_count 3
sconst ""
sstore 2
iconst 0
istore 2
iconst 0
istore 3
iconst 0
istore 4
sload 1
string_length
iconst 0
if_icmpgt LABEL13
jump LABEL118
LABEL13:
sload 0
sconst "<br>"
sconst "<br>"
sload 1
join_string 4
iload 0
if_getwidth
istore 2
sstore 2
sload 0 ; examine
sload 1 ; Convenience fee
sload 2 ; "<$string0><br><br><$string1>"
sconst "geExamineText"
runelite_callback
sstore 2 ; final text
pop_string ; Convenience fee
pop_string ; examine
iload 0
if_getx
sload 1
iload 2
iconst 494
parawidth
add
iconst 5
add
iload 0
if_gety
sload 2
iload 2
iconst 494
paraheight
iconst 15
multiply
add
iconst 2
add
istore 4
istore 3
iload 3
iload 1
if_getwidth
iconst 15
sub
iconst 2
div
sub
iload 4
iconst 11
iload 1
if_getheight
iconst 2
div
add
sub
istore 4
istore 3
iload 3
iload 4
iconst 0
iconst 0
iload 1
if_setposition
iconst 0
iload 1
if_sethide
iload 1
cc_deleteall
iload 1
iconst 5
iconst 0
cc_create
iconst 15
iconst 15
iconst 0
iconst 0
cc_setsize
iconst 0
iconst 0
iconst 1
iconst 1
cc_setposition
iconst 1094
cc_setgraphic
iconst 50
cc_settrans
iconst 244
iconst -2147483645
cc_getid
iconst 0
iconst -1
sconst "IiiI"
iload 1
if_setonmouserepeat
iconst 244
iconst -2147483645
cc_getid
iconst 50
iconst -1
sconst "IiiI"
iload 1
if_setonmouseleave
iconst 489
iconst -2147483644
iconst 2
sconst "ii"
iload 1
if_setonop
iconst 1
sconst "Info"
iload 1
if_setop
jump LABEL139
LABEL118:
sload 0
sstore 2
iconst 1
iload 1
if_sethide
iload 1
cc_deleteall
iconst -1
sconst ""
iload 1
if_setonmouserepeat
iconst -1
sconst ""
iload 1
if_setonmouseleave
iconst -1
sconst ""
iload 1
if_setonop
iload 1
if_clearops
LABEL139:
sload 2
iload 0
if_settext
return