Merge pull request 'Fixes #19 - Extras menu' (#29) from Nio/SnootGame_w_ExtrasMenu:master into Patchy-Patch5
Reviewed-on: https://git.snootgame.xyz/Cavemanon/SnootGame/pulls/29
|
@ -87,7 +87,8 @@ define gui.title_text_size = 75
|
||||||
## 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/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_panel = "gui/overlay/extras_submenu_panel.png"
|
||||||
|
|
||||||
## Dialogue ####################################################################
|
## Dialogue ####################################################################
|
||||||
##
|
##
|
||||||
|
|
BIN
game/gui/button/menubuttons/aboutbutton_idle.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
game/gui/button/menubuttons/aboutbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/aboutbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/extrasbutton.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
game/gui/button/menubuttons/extrasbutton_idle.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
game/gui/button/menubuttons/extrasbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/extrasbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/gallerybutton.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
game/gui/button/menubuttons/gallerybutton_idle.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
game/gui/button/menubuttons/gallerybutton_selected_hover.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
game/gui/button/menubuttons/gallerybutton_selected_idle.png
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 14 KiB |
BIN
game/gui/button/menubuttons/helpbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
game/gui/button/menubuttons/helpbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
game/gui/button/menubuttons/loadbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/loadbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/optionsbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
game/gui/button/menubuttons/optionsbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
game/gui/button/menubuttons/quitbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/quitbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
game/gui/button/menubuttons/returnbutton_idle.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
game/gui/button/menubuttons/startbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
game/gui/button/menubuttons/startbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
game/gui/button/menubuttons/updatesbutton_idle.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
game/gui/button/menubuttons/updatesbutton_selected_hover.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
game/gui/button/menubuttons/updatesbutton_selected_idle.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
game/gui/overlay/extras_submenu.png
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
game/gui/overlay/extras_submenu_panel.png
Normal file
After Width: | Height: | Size: 215 KiB |
414
game/screens.rpy
|
@ -382,16 +382,9 @@ screen main_menu():
|
||||||
imagebutton auto "gui/button/menubuttons/startbutton_%s.png" action Start()
|
imagebutton auto "gui/button/menubuttons/startbutton_%s.png" action Start()
|
||||||
imagebutton auto "gui/button/menubuttons/loadbutton_%s.png" action ShowMenu("load")
|
imagebutton auto "gui/button/menubuttons/loadbutton_%s.png" action ShowMenu("load")
|
||||||
imagebutton auto "gui/button/menubuttons/optionsbutton_%s.png" action ShowMenu("preferences")
|
imagebutton auto "gui/button/menubuttons/optionsbutton_%s.png" action ShowMenu("preferences")
|
||||||
imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("extras")
|
imagebutton auto "gui/button/menubuttons/extrasbutton_%s.png" action ShowMenu("extras")
|
||||||
imagebutton auto "gui/button/menubuttons/quitbutton_%s.png" action Quit(confirm=not main_menu)
|
imagebutton auto "gui/button/menubuttons/quitbutton_%s.png" action Quit(confirm=not main_menu)
|
||||||
|
|
||||||
|
|
||||||
# if gui.show_name:
|
|
||||||
#
|
|
||||||
# vbox:
|
|
||||||
# text "[config.version]":
|
|
||||||
# style "main_menu_version"
|
|
||||||
|
|
||||||
|
|
||||||
style main_menu_frame is empty
|
style main_menu_frame is empty
|
||||||
style main_menu_vbox is vbox
|
style main_menu_vbox is vbox
|
||||||
|
@ -560,36 +553,61 @@ 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"):
|
## This empty frame darkens the main menu.
|
||||||
|
frame:
|
||||||
|
pass
|
||||||
|
|
||||||
style_prefix "about"
|
## The use statement includes another screen inside this one. The actual
|
||||||
|
## contents of the main menu are in the navigation screen.
|
||||||
|
|
||||||
vbox:
|
vbox:
|
||||||
|
xpos 1240
|
||||||
|
## yalign 0.03
|
||||||
|
ypos 800
|
||||||
|
label "[config.name!t]"
|
||||||
|
text _("Version [config.version!t]\n")
|
||||||
|
|
||||||
label "[config.name!t]"
|
## gui.about is usually set in options.rpy.
|
||||||
text _("Version [config.version!t]\n")
|
if gui.about:
|
||||||
|
text "[gui.about!t]\n"
|
||||||
|
|
||||||
## gui.about is usually set in options.rpy.
|
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}")
|
||||||
if gui.about:
|
textbutton "Back to Extras" action ShowMenu("extras")
|
||||||
text "[gui.about!t]\n"
|
vbox:
|
||||||
|
xpos 1942
|
||||||
|
# xalign 1.0
|
||||||
|
yalign 0.95
|
||||||
|
use extrasnavigation
|
||||||
|
|
||||||
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}.")
|
style main_menu_frame is empty
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
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
|
||||||
|
|
||||||
## This is redefined in options.rpy to add text to the about screen.
|
style main_menu_frame:
|
||||||
define gui.about = ""
|
xsize 420
|
||||||
|
yfill True
|
||||||
|
|
||||||
|
background "gui/overlay/main_menu.png"
|
||||||
|
|
||||||
style about_label is gui_label
|
style main_menu_vbox:
|
||||||
style about_label_text is gui_label_text
|
xalign 1.0
|
||||||
style about_text is gui_text
|
xoffset -30
|
||||||
|
xmaximum 1200
|
||||||
|
yalign 1.0
|
||||||
|
yoffset -30
|
||||||
|
|
||||||
style about_label_text:
|
style main_menu_text:
|
||||||
size gui.label_text_size
|
properties gui.text_properties("main_menu", accent=True)
|
||||||
|
|
||||||
|
style main_menu_title:
|
||||||
|
properties gui.text_properties("title")
|
||||||
|
|
||||||
## Gallery screen ################################################################
|
## Gallery screen ################################################################
|
||||||
##
|
##
|
||||||
|
@ -599,29 +617,78 @@ style about_label_text:
|
||||||
screen gallery():
|
screen gallery():
|
||||||
|
|
||||||
tag menu
|
tag menu
|
||||||
|
|
||||||
## This use statement includes the game_menu screen inside this one. The
|
## This use statement includes the game_menu screen inside this one. The
|
||||||
## vbox child is then included inside the viewport inside the game_menu
|
## vbox child is then included inside the viewport inside the game_menu
|
||||||
## screen.
|
## screen.
|
||||||
use game_menu(_("Gallery"), scroll="viewport"):
|
style_prefix "main_menu"
|
||||||
|
|
||||||
style_prefix "gallery"
|
add gui.main_menu_background
|
||||||
|
add gui.extras_submenu_panel
|
||||||
|
|
||||||
|
frame:
|
||||||
|
pass
|
||||||
|
|
||||||
|
vbox:
|
||||||
|
xpos 500
|
||||||
|
yalign 0.2
|
||||||
|
textbutton "Back to Extras" action ShowMenu("extras")
|
||||||
|
|
||||||
vbox:
|
vbox:
|
||||||
|
viewport id "gallery":
|
||||||
|
xpos 700
|
||||||
|
ypos 1000
|
||||||
|
style_prefix "gallery"
|
||||||
|
use images
|
||||||
|
text _("") ## Not sure why, but this keeps the vbox below working ... Renpy quirk? Does it kill scrolling in the viewport? Tune in when we have the gallery populated in the images screen.
|
||||||
|
|
||||||
label "[config.name!t]"
|
|
||||||
text _("Version [config.version!t]\n")
|
|
||||||
|
vbox:
|
||||||
|
xpos 1942
|
||||||
|
# xalign 1.0
|
||||||
|
yalign 0.95
|
||||||
|
use extrasnavigation
|
||||||
|
|
||||||
text _("Placeholder for gallery.")
|
style main_menu_frame is empty
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
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
|
||||||
|
|
||||||
|
background "gui/overlay/main_menu.png"
|
||||||
|
|
||||||
|
style main_menu_vbox:
|
||||||
|
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")
|
||||||
|
|
||||||
|
|
||||||
style gallery_label is gui_label
|
## Images Screen ################################################################
|
||||||
style gallery_label_text is gui_label_text
|
##
|
||||||
style gallery_text is gui_text
|
## This is the screen that actually houses the images of the gallery
|
||||||
|
screen images():
|
||||||
|
tag menu
|
||||||
|
style_prefix "main_menu"
|
||||||
|
|
||||||
|
frame:
|
||||||
|
pass
|
||||||
|
vbox:
|
||||||
|
xpos 600
|
||||||
|
ypos 600
|
||||||
|
text _("Placeholder for gallery.")
|
||||||
|
|
||||||
style gallery_label_text:
|
|
||||||
size gui.label_text_size
|
|
||||||
|
|
||||||
|
|
||||||
## Updates screen ################################################################
|
## Updates screen ################################################################
|
||||||
|
@ -633,41 +700,64 @@ screen updates():
|
||||||
|
|
||||||
tag menu
|
tag menu
|
||||||
|
|
||||||
## This use statement includes the game_menu screen inside this one. The
|
style_prefix "main_menu"
|
||||||
## vbox child is then included inside the viewport inside the game_menu
|
|
||||||
## screen.
|
|
||||||
use game_menu(_("Updates"), scroll="viewport"):
|
|
||||||
|
|
||||||
style_prefix "updates"
|
add gui.main_menu_background
|
||||||
|
add gui.extras_submenu_background
|
||||||
|
|
||||||
|
## 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]"
|
##todo add size
|
||||||
text _("Your Version is [config.version!t]\n")
|
##add gui.game_menu_background
|
||||||
textbutton "[update]" ##action Update()
|
vbox:
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
xpos 1040
|
||||||
|
# yalign 0.03
|
||||||
|
ypos 800
|
||||||
|
text _("UPDATES")
|
||||||
|
label "[config.name!t]"
|
||||||
|
text _("Your Version is [config.version!t]\n")
|
||||||
|
##style_prefix "check"
|
||||||
|
label _("Auto Update")
|
||||||
|
textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
|
||||||
|
textbutton _("Update Now!") ##action ("persistent.autoup", True, False) This should also set the value of updateresults
|
||||||
|
label _("Update Result:\n")
|
||||||
|
text _("[persistent.updateresult!t]\n")
|
||||||
|
textbutton "Back to Extras" action ShowMenu("extras")
|
||||||
|
vbox:
|
||||||
|
xpos 1942
|
||||||
|
# xalign 1.0
|
||||||
|
yalign 0.95
|
||||||
|
use extrasnavigation
|
||||||
|
|
||||||
|
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 420
|
||||||
|
yfill True
|
||||||
|
|
||||||
## This is redefined in options.rpy to add text to the about screen.
|
background "gui/overlay/main_menu.png"
|
||||||
define gui.update = ""
|
|
||||||
|
|
||||||
|
style main_menu_vbox:
|
||||||
|
xalign 1.0
|
||||||
|
xoffset -30
|
||||||
|
xmaximum 1200
|
||||||
|
yalign 1.0
|
||||||
|
yoffset -30
|
||||||
|
|
||||||
style update_label is gui_label
|
style main_menu_text:
|
||||||
style update_label_text is gui_label_text
|
properties gui.text_properties("main_menu", accent=True)
|
||||||
style update_text is gui_text
|
|
||||||
style page_button is gui_button
|
|
||||||
style page_button_text is gui_button_text
|
|
||||||
|
|
||||||
|
style main_menu_title:
|
||||||
style update_label_text:
|
properties gui.text_properties("title")
|
||||||
size gui.label_text_size
|
|
||||||
|
|
||||||
style update_button:
|
|
||||||
properties gui.button_properties("page_button")
|
|
||||||
|
|
||||||
style update_button_text:
|
|
||||||
properties gui.button_text_properties("page_button")
|
|
||||||
|
|
||||||
## Load and Save screens #######################################################
|
## Load and Save screens #######################################################
|
||||||
##
|
##
|
||||||
|
@ -1066,14 +1156,100 @@ style history_label_text:
|
||||||
## A screen that combines help, about, updates, gallery,
|
## A screen that combines help, about, updates, gallery,
|
||||||
screen extras():
|
screen extras():
|
||||||
tag menu
|
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.
|
||||||
|
# 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
|
||||||
|
# imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
|
||||||
|
# imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
|
||||||
|
# imagebutton auto "gui/button/menubuttons/updatesbutton_%s.png" action ShowMenu("updates")
|
||||||
|
# imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu("gallery")
|
||||||
|
# imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# # if gui.show_name:
|
||||||
|
# #
|
||||||
|
# # vbox:
|
||||||
|
# # text "[config.version]":
|
||||||
|
|
||||||
|
# # style "main_menu_version"
|
||||||
vbox:
|
vbox:
|
||||||
textbutton _("Help") action ShowMenu("help")
|
xpos 1942
|
||||||
textbutton _("About") action ShowMenu("about")
|
# xalign 1.0
|
||||||
textbutton _("Updates") action ShowMenu("updates")
|
yalign 0.95
|
||||||
textbutton _("Gallery") action ShowMenu("gallery")
|
use extrasnavigation
|
||||||
textbutton _("Return") action ShowMenu("main_menu")
|
|
||||||
|
|
||||||
|
|
||||||
|
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 420
|
||||||
|
yfill True
|
||||||
|
|
||||||
|
background "gui/overlay/main_menu.png"
|
||||||
|
|
||||||
|
style main_menu_vbox:
|
||||||
|
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")
|
||||||
|
|
||||||
|
|
||||||
|
##Extras Navigation Screen #####################################################
|
||||||
|
##
|
||||||
|
##This screen is to be reused in
|
||||||
|
screen extrasnavigation():
|
||||||
|
vbox:
|
||||||
|
#xalign 1.0
|
||||||
|
xpos 665
|
||||||
|
ypos 270
|
||||||
|
|
||||||
|
if persistent.splashtype == 1:
|
||||||
|
add "gui/sneedgame.png"
|
||||||
|
else:
|
||||||
|
add "gui/snootgame.png"
|
||||||
|
vbox:
|
||||||
|
spacing 25
|
||||||
|
# xpos 590
|
||||||
|
xalign 0.79
|
||||||
|
yalign 1.0 #0.9
|
||||||
|
imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
|
||||||
|
imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
|
||||||
|
imagebutton auto "gui/button/menubuttons/updatesbutton_%s.png" action ShowMenu("updates")
|
||||||
|
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu("gallery")
|
||||||
|
imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
|
||||||
|
|
||||||
|
|
||||||
## Help screen #################################################################
|
## Help screen #################################################################
|
||||||
##
|
##
|
||||||
|
@ -1085,33 +1261,57 @@ screen help():
|
||||||
|
|
||||||
tag menu
|
tag menu
|
||||||
|
|
||||||
|
style_prefix "main_menu"
|
||||||
|
|
||||||
|
add gui.main_menu_background
|
||||||
|
add gui.extras_submenu_panel
|
||||||
|
|
||||||
|
## This empty frame darkens the main menu.
|
||||||
|
frame:
|
||||||
|
pass
|
||||||
|
|
||||||
default device = "keyboard"
|
default device = "keyboard"
|
||||||
|
|
||||||
use game_menu(_("Help"), scroll="viewport"):
|
# vbox:
|
||||||
|
# xpos 1100
|
||||||
|
# ## ypos 1000
|
||||||
|
# yalign 0.4
|
||||||
|
# spacing 23
|
||||||
|
|
||||||
|
hbox:
|
||||||
|
xpos 200
|
||||||
|
## ypos 1000
|
||||||
|
yalign 0.3
|
||||||
|
spacing 23
|
||||||
style_prefix "help"
|
style_prefix "help"
|
||||||
|
textbutton _("Keyboard") action SetScreenVariable("device", "keyboard")
|
||||||
|
textbutton _("Mouse") action SetScreenVariable("device", "mouse")
|
||||||
|
if GamepadExists():
|
||||||
|
textbutton _("Gamepad") action SetScreenVariable("device", "gamepad")
|
||||||
|
textbutton "Back to Extras" action ShowMenu("extras")
|
||||||
|
|
||||||
vbox:
|
vbox:
|
||||||
spacing 23
|
xpos 1100
|
||||||
|
ypos 1000
|
||||||
hbox:
|
# yalign 0.4
|
||||||
|
if device == "keyboard":
|
||||||
textbutton _("Keyboard") action SetScreenVariable("device", "keyboard")
|
use keyboard_help
|
||||||
textbutton _("Mouse") action SetScreenVariable("device", "mouse")
|
elif device == "mouse":
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
use mouse_help
|
||||||
if GamepadExists():
|
elif device == "gamepad":
|
||||||
textbutton _("Gamepad") action SetScreenVariable("device", "gamepad")
|
use gamepad_help
|
||||||
|
text _("") ## again in here to keep vbox in check
|
||||||
if device == "keyboard":
|
|
||||||
use keyboard_help
|
|
||||||
elif device == "mouse":
|
|
||||||
use mouse_help
|
|
||||||
elif device == "gamepad":
|
|
||||||
use gamepad_help
|
|
||||||
|
|
||||||
|
vbox:
|
||||||
|
xpos 1942
|
||||||
|
# xalign 1.0
|
||||||
|
yalign 0.95
|
||||||
|
use extrasnavigation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
screen keyboard_help():
|
screen keyboard_help():
|
||||||
|
style_prefix "help"
|
||||||
hbox:
|
hbox:
|
||||||
label _("Enter")
|
label _("Enter")
|
||||||
text _("Advances dialogue and activates the interface.")
|
text _("Advances dialogue and activates the interface.")
|
||||||
|
@ -1158,7 +1358,7 @@ screen keyboard_help():
|
||||||
|
|
||||||
|
|
||||||
screen mouse_help():
|
screen mouse_help():
|
||||||
|
style_prefix "help"
|
||||||
hbox:
|
hbox:
|
||||||
label _("Left Click")
|
label _("Left Click")
|
||||||
text _("Advances dialogue and activates the interface.")
|
text _("Advances dialogue and activates the interface.")
|
||||||
|
@ -1180,8 +1380,8 @@ screen mouse_help():
|
||||||
text _("Rolls forward to later dialogue.")
|
text _("Rolls forward to later dialogue.")
|
||||||
|
|
||||||
|
|
||||||
screen gamepad_help():
|
screen gamepad_help():
|
||||||
|
style_prefix "help"
|
||||||
hbox:
|
hbox:
|
||||||
label _("Right Trigger\nA/Bottom Button")
|
label _("Right Trigger\nA/Bottom Button")
|
||||||
text _("Advances dialogue and activates the interface.")
|
text _("Advances dialogue and activates the interface.")
|
||||||
|
@ -1209,7 +1409,7 @@ screen gamepad_help():
|
||||||
|
|
||||||
textbutton _("Calibrate") action GamepadCalibrate()
|
textbutton _("Calibrate") action GamepadCalibrate()
|
||||||
|
|
||||||
|
#this bit is might need trimming or rework
|
||||||
style help_button is gui_button
|
style help_button is gui_button
|
||||||
style help_button_text is gui_button_text
|
style help_button_text is gui_button_text
|
||||||
style help_label is gui_label
|
style help_label is gui_label
|
||||||
|
@ -1233,6 +1433,30 @@ style help_label_text:
|
||||||
text_align 1.0
|
text_align 1.0
|
||||||
|
|
||||||
|
|
||||||
|
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 420
|
||||||
|
yfill True
|
||||||
|
|
||||||
|
background "gui/overlay/main_menu.png"
|
||||||
|
|
||||||
|
style main_menu_vbox:
|
||||||
|
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")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Additional screens
|
## Additional screens
|
||||||
|
|