positioning fist draft, all buttons done for idle

This commit is contained in:
Nio 2021-06-17 21:00:26 +10:00
parent 4a9f9d5616
commit 95e9a9ad47
6 changed files with 166 additions and 49 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 215 KiB

View File

@ -596,11 +596,11 @@ screen about():
spacing 25 spacing 25
xpos 1885 xpos 1885
yalign 0.9 yalign 0.9
textbutton _("Help") action ShowMenu("help") imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
textbutton _("About") action ShowMenu("about") imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
textbutton _("Updates") action ShowMenu("updates") 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/gallerybutton_%s.png" action ShowMenu("gallery")
textbutton _("Return") action ShowMenu("main_menu") imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
style main_menu_frame is empty style main_menu_frame is empty
style main_menu_vbox is vbox style main_menu_vbox is vbox
@ -635,29 +635,87 @@ style main_menu_title:
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 300
yalign 0.3
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 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")
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 about_label is gui_label ## Images Screen ################################################################
style about_label_text is gui_label_text ##
style about_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:
text _("Placeholder for gallery.")
style about_label_text:
size gui.label_text_size
## Updates screen ################################################################ ## Updates screen ################################################################
@ -708,11 +766,11 @@ screen updates():
spacing 25 spacing 25
xpos 1885 xpos 1885
yalign 0.9 yalign 0.9
textbutton _("Help") action ShowMenu("help") imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
textbutton _("About") action ShowMenu("about") imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
textbutton _("Updates") action ShowMenu("updates") 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/gallerybutton_%s.png" action ShowMenu("gallery")
textbutton _("Return") action ShowMenu("main_menu") imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
style main_menu_frame is empty style main_menu_frame is empty
style main_menu_vbox is vbox style main_menu_vbox is vbox
@ -1159,11 +1217,12 @@ screen extras():
spacing 25 spacing 25
xpos 1885 xpos 1885
yalign 0.9 yalign 0.9
textbutton _("Help") action ShowMenu("help") imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
textbutton _("About") action ShowMenu("about") imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
textbutton _("Updates") action ShowMenu("updates") 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/gallerybutton_%s.png" action ShowMenu("gallery")
textbutton _("Return") action ShowMenu("main_menu") imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
# if gui.show_name: # if gui.show_name:
@ -1210,33 +1269,67 @@ 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 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")
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.")
@ -1283,7 +1376,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.")
@ -1305,8 +1398,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.")
@ -1334,7 +1427,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
@ -1358,6 +1451,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