issue using an imagebuton to change a variable
Posted: Sun Jan 18, 2015 9:27 pm
Howdy,
I'm trying to use a clickable button to change a variable from true to false
This seems to actually crash ren'py and cause an error report
I've tried multiple functions like ToggleVariable, set, even had a go just trying $ show_stat_box=True
It's been a few hours, at this stage any clickable that changes a variable would be a fine solution
I'm trying to use a clickable button to change a variable from true to false
Code: Select all
$ show_stat_box=False
screen stat_button():
imagebutton auto "ui/stat_button_%s.png" xpos 0.01 ypos 0.01 focus_mask True action SetVariable(show_stat_box=True)
I've tried multiple functions like ToggleVariable, set, even had a go just trying $ show_stat_box=True
It's been a few hours, at this stage any clickable that changes a variable would be a fine solution