added main menu image, put all the main menu navigation under main menu screen code

This commit is contained in:
ameworm 2026-02-11 15:08:09 -03:00
parent 061bd6fb92
commit f0af2fd756
6 changed files with 15 additions and 14 deletions

View file

@ -87,7 +87,7 @@ define gui.title_text_size = 50
## Main and Game Menus ######################################################### ## Main and Game Menus #########################################################
## The images used for the main and game menus. ## The images used for the main and game menus.
define gui.main_menu_background = "gui/main_menu.png" define gui.main_menu_background = "gui/mainmenu.png"
define gui.game_menu_background = "gui/game_menu.png" define gui.game_menu_background = "gui/game_menu.png"

BIN
gui.rpyc

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
gui/mainmenu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

View file

@ -422,26 +422,27 @@ screen main_menu():
add gui.main_menu_background add gui.main_menu_background
## This empty frame darkens the main menu. vbox:
frame: style_prefix "navigation"
style "main_menu_frame"
xpos gui.navigation_xpos
yalign 0.5
spacing gui.navigation_spacing
textbutton _("Start") action Start()
textbutton _("Load") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("About") action ShowMenu("about")
textbutton _("Help") action ShowMenu("help")
textbutton _("Quit") action Quit(confirm=not main_menu)
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
use navigation
style main_menu_frame is empty style main_menu_frame is empty
style main_menu_vbox is vbox style main_menu_vbox is vbox
style main_menu_text is gui_text style main_menu_text is gui_text
style main_menu_title is main_menu_text style main_menu_title is main_menu_text
style main_menu_version is main_menu_text style main_menu_version is main_menu_text
style main_menu_frame:
xsize 280
yfill True
background "gui/overlay/main_menu.png"
style main_menu_vbox: style main_menu_vbox:
xalign 1.0 xalign 1.0
xoffset -20 xoffset -20

Binary file not shown.