Hey all,
Been messing with this for some time now, I know you cannot have more than 1 action listed, however I am wondering if there is a way to do the following:
I have several screen overlays that when clicked will toggle to show more imagebuttons, id like to have the first imagebutton act as a 'master' in that it will clear all the imagebuttons that have been created.
my code as follows:
the commented out part is what ive been messing with, ive tried ' and ' , ive also tried:
but computer says no. I'm probably missing something simple (normally am) so any help / advice / copy + paste would be appreciated.
Thanks
Been messing with this for some time now, I know you cannot have more than 1 action listed, however I am wondering if there is a way to do the following:
I have several screen overlays that when clicked will toggle to show more imagebuttons, id like to have the first imagebutton act as a 'master' in that it will clear all the imagebuttons that have been created.
my code as follows:
Python:
init python:
idir = "images/overlay/"
showMenu_items = False
screen interface():
$ ShowHide = idir + "showhide.png"
$ ShowHide_h = idir + "showhide_h.png"
$ rel_select = False
imagebutton:
idle ShowHide
hover ShowHide_h
action [ToggleVariable("showMenu_items")]
# i need something here to do the next line
# action ToggleScreen("rel_select")
focus_mask True
pos (5, 2)
if showMenu_items:
use blah blah
use blah blah
Python:
IF rel_select:
action ToggleScreen("rel_select")
else:
action [ToggleVariable("showMenu_items")]
Thanks