here's an example:
Code: Select all
transform on_hide_test:
alpha 0.0
on appear:
linear .3 alpha 1
on show:
linear .3 alpha 1
on hide:
linear .3 alpha 0
screen on_hid_scr:
default hid = 0
vbox:
showif hid:
hbox:
button:
at on_hide_test
text "hide"
yalign 0.1
action ToggleScreenVariable("hid", 0, 1)
else:
button:
at on_hide_test
text "hide"
yalign 0.1
action ToggleScreenVariable("hid", 0, 1)