Jam13Yuuka/game/screens/main_menu.rpy

60 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-04-05 05:40:52 +00:00
## 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 = "Main_Menu3.png"
image main_menu_foreground = HBox(
2024-04-14 20:23:01 +00:00
Solid("#292835AA", xsize=325, ysize=480)
2024-04-05 05:40:52 +00:00
)
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
add "main_menu_background":
ypos -20
xpos -70
add "main_menu_foreground":
xalign 0.5
yalign 0.95
2024-04-05 05:40:52 +00:00
vbox:
xalign 0.5
yalign 0.95
spacing 2
2024-04-05 05:40:52 +00:00
textbutton _("Start") action Start():
xalign 0.5
2024-04-05 05:40:52 +00:00
textbutton _("Load") action ShowMenu("load"):
xalign 0.5
2024-04-05 05:40:52 +00:00
textbutton _("Endings") action ShowMenu("ending_gallery"):
xalign 0.5
textbutton _("Preferences") action ShowMenu("preferences"):
xalign 0.5
2024-04-05 05:40:52 +00:00
textbutton _("About") action ShowMenu("about"):
xalign 0.5
2024-04-05 05:40:52 +00:00
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"):
xalign 0.5
2024-04-05 05:40:52 +00:00
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):
xalign 0.5
2024-04-05 05:40:52 +00:00