I'n the choice-menu, in-game, I have disabled entries (because conditions aren't met yet), and I would like these to be a different color (either text or background, or both) - how, exactly, can I do this?
I'm using this code for the choice-menu with conditions:
Code: Select all
screen choice(items):
style_prefix "choice"
# window:
# style "menu_window"
# xalign 0.5
# yalign 0.5
vbox:
# style "menu"
spacing 20
for caption, action, chosen in items:
if action:
if conditions.check(caption):
button:
style "choice_button"
text conditions.text(caption) style "choice_button"
else:
button:
action action
style "choice_button"
text caption style "choice_button"
else:
text caption style "choice_button"
init -2:
$ config.narrator_menu = True
style choice_vbox is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox:
xalign 0.5
ypos 405
yanchor 0.5
spacing gui.choice_spacing
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.button_text_properties("choice_button")
Any tips to how I can do this, preferably by defining gui.button_text_disabled or similar in the gui.rpy. If that's not possible, any solution will work.