wider panel added, text resized in About page, still not entirely sold on this, might do a version where it is integrated into the old menu layout

This commit is contained in:
Nio
2021-06-16 18:43:06 +10:00
parent e340999249
commit 4a9f9d5616
3 changed files with 57 additions and 20 deletions

View File

@ -88,6 +88,7 @@ define gui.title_text_size = 75
define gui.main_menu_background = "gui/main_menu.png" define gui.main_menu_background = "gui/main_menu.png"
define gui.game_menu_background = "gui/game_menu.png" define gui.game_menu_background = "gui/game_menu.png"
define gui.extras_submenu_background = "gui/overlay/extras_submenu.png" define gui.extras_submenu_background = "gui/overlay/extras_submenu.png"
define gui.extras_submenu_panel = "gui/overlay/extras_submenu_panel.png"
## Dialogue #################################################################### ## Dialogue ####################################################################
## ##

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

View File

@ -560,36 +560,72 @@ style return_button:
screen about(): screen about():
tag menu tag menu
style_prefix "main_menu"
## This use statement includes the game_menu screen inside this one. The add gui.main_menu_background
## vbox child is then included inside the viewport inside the game_menu add gui.extras_submenu_panel
## screen.
use game_menu(_("About"), scroll="viewport"):
style_prefix "about" ## This empty frame darkens the main menu.
frame:
pass
vbox: ## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
label "[config.name!t]" vbox:
text _("Version [config.version!t]\n") xpos 1240
## yalign 0.03
ypos 800
label "[config.name!t]"
text _("Version [config.version!t]\n")
## gui.about is usually set in options.rpy. ## gui.about is usually set in options.rpy.
if gui.about: if gui.about:
text "[gui.about!t]\n" text "[gui.about!t]\n"
text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]\nTo find more information about the game (and its source code) please visit {a=https://www.snootgame.xyz/}our website{/a}.") text _("{size=24}Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]\nTo find more information about the game (and its source code) please visit {a=https://www.snootgame.xyz/}our website{/a}.{/size}")
textbutton "Back to Extras" action ShowMenu("extras") textbutton "Back to Extras" action ShowMenu("extras")
vbox:
xpos 1940
yalign 0.03
if persistent.splashtype == 1:
add "gui/sneedgame.png"
else:
add "gui/snootgame.png"
vbox:
spacing 25
xpos 1885
yalign 0.9
textbutton _("Help") action ShowMenu("help")
textbutton _("About") action ShowMenu("about")
textbutton _("Updates") action ShowMenu("updates")
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu("gallery")
textbutton _("Return") action ShowMenu("main_menu")
## This is redefined in options.rpy to add text to the about screen. style main_menu_frame is empty
define gui.about = "" 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 420
yfill True
style about_label is gui_label background "gui/overlay/main_menu.png"
style about_label_text is gui_label_text
style about_text is gui_text
style about_label_text: style main_menu_vbox:
size gui.label_text_size xalign 1.0
xoffset -30
xmaximum 1200
yalign 1.0
yoffset -30
style main_menu_text:
properties gui.text_properties("main_menu", accent=True)
style main_menu_title:
properties gui.text_properties("title")
## Gallery screen ################################################################ ## Gallery screen ################################################################
## ##