63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
init -20:
|
|
|
|
define config.enter_transition = dissolve
|
|
define config.exit_transition = dissolve
|
|
|
|
define config.intra_transition = dissolve
|
|
|
|
python:
|
|
_game_menu_screen = "save"
|
|
|
|
style game_menu_text is interface_text
|
|
style game_menu_frame is interface_frame
|
|
style game_menu_bar is interface_bar
|
|
style game_menu_vbar is interface_vbar
|
|
style game_menu_scrollbar is interface_scrollbar
|
|
style game_menu_vscrollbar is interface_vscrollbar
|
|
style game_menu_slider is interface_slider
|
|
style game_menu_button is interface_button
|
|
style game_menu_button_text is interface_button_text
|
|
style game_menu_label is interface_label
|
|
style game_menu_label_text is interface_label_text
|
|
|
|
screen game_menu(title=None):
|
|
|
|
style_prefix "game_menu"
|
|
|
|
# if main_menu:
|
|
# use main_menu
|
|
# if not main:
|
|
add Layer("master", clipping=False) at transform:
|
|
blur 10
|
|
|
|
if not main_menu:
|
|
button action Return()
|
|
|
|
frame:
|
|
align (.5, .35)
|
|
xysize (.8, .7)
|
|
background Solid(gui.colors.transparent_black)
|
|
padding (10, 10, 10, 10)
|
|
|
|
frame:
|
|
xfill True
|
|
label title or _("GAME MENU{#GAMEMENU}")
|
|
|
|
textbutton _("RETURN{#GAMEMENU}"):
|
|
xalign 1.0
|
|
if main_menu or title is None or _game_menu_screen != "pause_menu":
|
|
action Return()
|
|
else:
|
|
action ShowMenu(_game_menu_screen)
|
|
|
|
transclude
|
|
|
|
use navigation
|
|
|
|
|
|
|
|
if main_menu:
|
|
key "game_menu" action ShowMenu("main_menu")
|
|
|
|
|