Code: Select all
init:
python:
def _menu_pivot(text, target):
clicked = ui.jumps(target)
label _menu_pivot:
# Show the menu background.
scene
# Show the pivot menu in the middle of the screen.
$ ui.vbox(xalign=0.5, yalign=0.5)
# Show each link, using the menu function. The three arguments are:
# - The text of a link.
# - The label that we jump to if the menu is picked.
$ _menu_pivot ("Save", "save")
$ _menu_pivot ("Load", "load")
$ _menu_pivot ("Close Menu", "end_menu_pivot")
$ ui.close()
$ ui.interact()
label end_menu_pivot:
return
label save:
$ renpy.game_menu("save_screen")
return
label load:
$ renpy.game_menu("load_screen")
return