added main menu image, put all the main menu navigation under main menu screen code
This commit is contained in:
parent
061bd6fb92
commit
f0af2fd756
6 changed files with 15 additions and 14 deletions
2
gui.rpy
2
gui.rpy
|
|
@ -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
BIN
gui.rpyc
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
BIN
gui/mainmenu.png
Normal file
BIN
gui/mainmenu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 250 KiB |
27
screens.rpy
27
screens.rpy
|
|
@ -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
|
||||||
|
|
|
||||||
BIN
screens.rpyc
BIN
screens.rpyc
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue