Jam13Yuuka/game/screens/main_menu.rpy

47 lines
1.2 KiB
Plaintext

## Main Menu screen ############################################################
##
## Used to display the main menu when Ren'Py starts.
##
## https://www.renpy.org/doc/html/screen_special.html#main-menu
## Replace this with your background image, if you like
image main_menu_background = HBox(
Solid("#292835", xsize=350),
Solid("#21212d")
)
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
add "main_menu_background"
vbox:
xpos 60
yalign 0.5
spacing 6
textbutton _("Start") action Start()
textbutton _("Load") action ShowMenu("load")
textbutton _("Endings") action ShowMenu("ending_gallery")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("About") action ShowMenu("about")
if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
## Help isn't necessary or relevant to mobile devices.
textbutton _("Help") action ShowMenu("help")
if renpy.variant("pc"):
## The quit button is banned on iOS and unnecessary on Android and
## Web.
textbutton _("Quit") action Quit(confirm=not main_menu)