Skip to content

Instantly share code, notes, and snippets.

@vbkaisetsu
Last active December 11, 2015 05:28
Show Gist options
  • Save vbkaisetsu/4552326 to your computer and use it in GitHub Desktop.
Save vbkaisetsu/4552326 to your computer and use it in GitHub Desktop.
Vertical choices on ADV mode
########## script.rpy ##########
label start:
"Choose the correct box!"
menu:
"RIGHT BOX":
"Umm, right?"
"LEFT BOX":
"Umm, left?"
"It's wrong!"
"The other box is correct, isn't it?"
"Both boxes are wrong!"
########## screens.rpy ##########
screen choice:
window:
style "menu_window"
xalign 0.5
yalign 0.5
hbox:
style "menu"
spacing 2
box_reverse True
for caption, action, chosen in items:
if action:
button:
style "menu_choice_button"
action action
xminimum None xmaximum None
text caption style "menu_choice" vertical True
else:
text caption style "menu_caption" vertical True
init -1 python:
style.menu_choice_button.yminimum = int(config.screen_height * 0.75)
style.menu_choice_button.ymaximum = int(config.screen_height * 0.75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment