However, for one menu, I want to have 8 options. Is there a way I can style the choice menu screen to look different, but only in this one instance?
I tried including a flag right before the menu, and then using an if statement in screens.rpy, but it didn't seem to work (example below). It didn't cause an error, but it seems to always act as if the "multichoice" flag is False
Is there a way to do this?
Code: Select all
default multichoice = True
menu :
Code: Select all
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
## When this is true, menu captions will be spoken by the narrator. When false,
## menu captions will be displayed as empty buttons.
define config.narrator_menu = True
if multichoice : # For menu with more than 3 options.
style choice_vbox1 is vbox
else : # For menu with 3 or less options.
style choice_vbox2 is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox1:
xalign 0.5
ypos 920
yanchor 0.5
spacing gui.choice_spacing
style choice_vbox2:
xalign 0.0
ypos 0
yanchor 0.0
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")