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
|
2024-04-08 13:46:59 +00:00
|
|
|
image main_menu_background = "Main_Menu3.png"
|
|
|
|
image main_menu_foreground = HBox(
|
|
|
|
Solid("#292835AA", xsize=325, ysize=575)
|
2024-04-05 05:40:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
screen main_menu():
|
|
|
|
|
|
|
|
## This ensures that any other menu screen is replaced.
|
|
|
|
tag menu
|
|
|
|
|
2024-04-08 13:46:59 +00:00
|
|
|
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:
|
2024-04-08 13:46:59 +00:00
|
|
|
xalign 0.5
|
|
|
|
yalign 0.95
|
|
|
|
spacing 2
|
2024-04-05 05:40:52 +00:00
|
|
|
|
2024-04-08 13:46:59 +00:00
|
|
|
textbutton _("Start") action Start():
|
|
|
|
xalign 0.5
|
2024-04-05 05:40:52 +00:00
|
|
|
|
2024-04-08 13:46:59 +00:00
|
|
|
textbutton _("Load") action ShowMenu("load"):
|
|
|
|
xalign 0.5
|
2024-04-05 05:40:52 +00:00
|
|
|
|
2024-04-08 13:46:59 +00:00
|
|
|
textbutton _("Endings") action ShowMenu("ending_gallery"):
|
|
|
|
xalign 0.5
|
2024-04-05 09:26:40 +00:00
|
|
|
|
2024-04-08 13:46:59 +00:00
|
|
|
textbutton _("Preferences") action ShowMenu("preferences"):
|
|
|
|
xalign 0.5
|
2024-04-05 05:40:52 +00:00
|
|
|
|
2024-04-08 13:46:59 +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.
|
2024-04-08 13:46:59 +00:00
|
|
|
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.
|
2024-04-08 13:46:59 +00:00
|
|
|
textbutton _("Quit") action Quit(confirm=not main_menu):
|
|
|
|
xalign 0.5
|
2024-04-05 05:40:52 +00:00
|
|
|
|