Code: Select all
screen quick_menu:
# Add an in-game quick menu.
if POV = True:
vbox:
style_group "uiquick"
xalign 1.0
yalign 0.97
textbutton _("Q.Save") action QuickSave()
textbutton _("Q.Load") action QuickLoad()
textbutton _("Skip") action Skip()
textbutton _("Auto") action Preference("auto-forward", "toggle")
else:
vbox:
style_group "quick"
xalign 1.0
yalign 0.97
textbutton _("Q.Save") action QuickSave()
textbutton _("Q.Load") action QuickLoad()
textbutton _("Skip") action Skip()
textbutton _("Auto") action Preference("auto-forward", "toggle")
init -2 python:
style.quick_button.set_parent('default')
style.quick_button.background = "Screens/quickbutton.png"
style.quick_button.xminimum = 70
style.quick_button.left_padding = 10
style.quick_button_text.set_parent('default')
style.quick_button_text.size = 15
style.quick_button_text.idle_color = "#8888"
style.quick_button_text.hover_color = "#ccc"
style.quick_button_text.selected_idle_color = "#cc08"
style.quick_button_text.selected_hover_color = "#cc0"
style.quick_button_text.insensitive_color = "#4448"
style.uiquick_button.set_parent('quick')
style.uiquick_button.background = "Screens/quickbutton2.png"
style.uiquick_button.xminimum = 70
style.uiquick_button_text.size = 15
style.uiquick_button_text.left_padding = 10
style.uiquick_button_text.idle_color = "#fff"
style.uiquick_button_text.hover_color = "#fff"
style.uiquick_button_text.selected_idle_color = "#fff"
style.uiquick_button_text.selected_hover_color = "#fff"
style.uiquick_button_text.insensitive_color = "#fff"Code: Select all
label start:
$ POV = False
k "Character k GUI."
$ POV = True
u "Character u GUI"
returnThe quick menu takes the style of the first mentioned. If I move interchange the style_group, they both work just fine. Just that, it doesn't change ingame.
