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

@ -422,26 +422,27 @@ screen main_menu():
add gui.main_menu_background
## This empty frame darkens the main menu.
frame:
style "main_menu_frame"
vbox:
style_prefix "navigation"
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_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:
xsize 280
yfill True
background "gui/overlay/main_menu.png"
style main_menu_vbox:
xalign 1.0
xoffset -20