documentation index ◦ reference manual ◦ function index
Function: | ui.layer | (name): |
This causes widgets to be added to the named layer, until a matching call to ui.close.
python: # This function actually draws the overlay menu. def overlay_menu_func(): if overlay_menu.shown: ui.layer("overlay_menu") ui.vbox(xpos=1.0, xanchor="right", ypos=0.75, yanchor="bottom") def button(label, target): ui.textbutton(label, clicked=renpy.curried_call_in_new_context(target)) button("Load Game", "_game_menu_load") button("Save Game", "_game_menu_save") button("Preferences", "_game_menu_preferences") ui.close() # ui.vbox ui.close() # ui.layer