I'm working on my profile screen, which has categories, then individuals.
As it is now when you go to the screen all the categories are showing their selected state.
Here is the code I'm using:
Code: Select all
screen profiles:
default humans = False
default angels = False
default demons = False
default other = False
tag exmenu
add "UI/MM/BGN.png"
text "Profiles":
style_group "subsubtitle"
frame:
style_group "prof"
hbox:
vbox:
textbutton _("Humans"):
action [SetScreenVariable("humans", True), SetScreenVariable("angels", False), SetScreenVariable("demons", False), SetScreenVariable("other", False)]
textbutton _("Angels"):
action [SetScreenVariable("angels", True), SetScreenVariable("humans", False), SetScreenVariable("demons", False), SetScreenVariable("other", False)]
textbutton _("Demons"):
action [SetScreenVariable("demons", True), SetScreenVariable("humans", False), SetScreenVariable("angels", False), SetScreenVariable("other", False)]
textbutton _("Other"):
action [SetScreenVariable("other", True), SetScreenVariable("humans", False), SetScreenVariable("angels", False), SetScreenVariable("demons", False)]
if humans:
text "Humans"
elif angels:
text "Angels"
elif demons:
text "Demons"
elif other:
text "Other"