Instantly share code, notes, and snippets.

Embed
What would you like to do?
screen choice:
window:
style "menu_window"
xalign 0.5
yalign 0.5
vbox:
style "menu"
spacing 2
$ number = 0
for caption, action, chosen in items:
$ number += 1
if action:
key str(number) action action
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment