Last active
January 26, 2019 12:03
-
-
Save drojf/072e3cf3225e6f725549ba641bc98d19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*advchar | |
getparam $Free28 | |
; if named textbox not enabled, this function just returns | |
if %adv_call_state == 0 return | |
; the image -1.png is the no-named textbox | |
if $Free28 == "00" mov $Free28, "-1" | |
if $Free28 == "99" mov $Free28, "-1" | |
; calculate the OLD filename | |
mov $Free27, ":b;textbox\" | |
if %textboxType == 0 jumpf | |
mov $Free27, ":b;textbox_black\" | |
~ | |
add $Free27, $Free26 | |
add $Free27, ".png" | |
; calculate the filename | |
mov $Free29, ":b;textbox\" | |
if %textboxType == 0 jumpf | |
mov $Free29, ":b;textbox_black\" | |
~ | |
add $Free29, $Free28 | |
add $Free29, ".png" | |
; only update the window if it is different to the current one. Clear page immediately. | |
if $Free27 != $Free29 setwindow2 $Free29 : mov $Free26,$Free28 : gosub *clear_text_and_save_backlog | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment