I have a new problem... again. In the preferences menu I have added new buttons so that the player can change the text size and the buttons text size. But the buttons are always show "selected". I think I know why happens that... I've tried everything, even with the IfSelected function, but I think that I'm not doing something correctly because don't matter how I write the code, always are selected.
Here is the code:
Code: Select all
grid 3 1:
style_group "prefs"
xfill True
# The left column.
vbox:
frame:
style_group "pref"
has vbox
label _("Size")
textbutton _("Little") action [StylePreference ("size", "little"), ShowMenu ("preferences")]
textbutton _("Normal") action [StylePreference ("size", "normal"), ShowMenu ("preferences")]
textbutton _("Big") action [StylePreference ("size", "big"), ShowMenu ("preferences")]
frame:
style_group "pref"
has vbox
label _("Transitions")
textbutton _("All") action Preference("transitions", "all")
textbutton _("None") action Preference("transitions", "none")
[...etc...the rest of code of the preferences menu goes below...]
Any idea?
Thanks!!