Which is great when starting a new game. However, I want to make it so if there's a save file, the button will show "Continue" instead of "New game."
Here's the current code:
Code: Select all
screen main_menu_navigation():
imagemap:
ground 'gui/main_menu.png'
hover 'gui/main_menu_hover.png'
hotspot (78, 824, 837, 192) action Start()
hotspot (1019, 770, 471, 153) action ShowMenu('load')
hotspot (1525, 752, 222, 125) action ShowMenu('preferences')
#hotspot (109,656,479,771) action ShowMenu('about')
hotspot (1769, 748, 112, 102) action Quit(confirm=False)
## Main Menu screen ############################################################
##
## Used to display the main menu when Ren'Py starts.
##
## https://www.renpy.org/doc/html/screen_special.html#main-menu
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
## This empty frame darkens the main menu.
frame:
pass
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
##
## We will replace this with our own main menu navigation.
# use navigation
use main_menu_navigation
add gui.main_menu_background
## This empty frame darkens the main menu.
frame:
style "main_menu_frame"
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
use main_menu_navigation
if gui.show_name:
vbox:
style "main_menu_vbox"
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
style main_menu_frame is empty
style main_menu_vbox is vbox
style main_menu_text is gui_text
style main_menu_title is main_menu_text
style main_menu_version is main_menu_text
style main_menu_frame: #(132, 402, 409, 572)
xsize 409
yfill True
#background "gui/overlay/main_menu.png"
style main_menu_vbox:
xalign 0.0
#xoffset -30
xmaximum 1200
yalign 0.0
#yoffset -30
style main_menu_text:
properties gui.text_properties("main_menu", accent=True)
style main_menu_title:
properties gui.text_properties("title")
style main_menu_version:
properties gui.text_properties("version")