textbutton behaviour
Posted: Thu Oct 10, 2019 3:49 am
Hi everyone! I have a simple screen in my game:
my problem is that for the "Extranet" textbutton, if I have the "SetVariable" part in, the button will refuse to style, appearing like normal text (and being unresponsive to mouse hover). Removing that part makes the button behave normally. What could be the issue here?
Code: Select all
screen hologlasses:
zorder 110
add "splash.png"
modal True
hbox:
xalign 0.5 yalign 0.5
spacing 5
vbox:
text "Quest log (not available yet)" #action [ Show('quest_log'), Hide("hologlasses")]
textbutton "Extranet" action [ Show('extranet_entries'), Hide("hologlasses"), SetVariable("extra_search", "")]
textbutton "Personal profiles" action [ Show('profiles'), Hide("hologlasses")]
textbutton "Back" action [ Show('hologlasses_button'), Hide("hologlasses")] xalign 0.5 yalign 0.95