This has worked great for a few days, but I've started to think that it needs some tweaking.
I have a 100 pixel "header" that I'd like to remain above the screen at all times, so that it appears as if the screen is appearing from behind it, rather than over top of it.
Problem is, I'm unsure how to achieve this. Layers?
Can anyone advise me please?
For reference:
https://i.imgur.com/2cx5wcB.png
https://i.imgur.com/SJf3W66.png
The second image is the screen once it is shown. I'd like it to remain behind the visible blue bar, while it slides on screen.
The relevant code for the screen is here (note this is under revision and may/will be changed soon)
Code: Select all
screen navi_drop():
modal True
zorder 50
style_prefix "navi_drop"
hbox:
imagebutton alt "menu" hover "gui/button/menu.png" idle "gui/button/menu.png" action Hide("navi_drop") # the three bars on screen top left. This shows and hides the screen.
frame at navigation_appear:
has vbox
ysize 1180
ymaximum 1180
grid 1 6:
spacing 50
imagebutton alt "save" hover "gui/button/save.png" idle "gui/button/save.png" focus_mask True action ShowMenu("save"), Hide("navi_drop")
imagebutton alt "load" hover "gui/button/load.png" idle "gui/button/load.png" focus_mask True action ShowMenu("load"), Hide("navi_drop")
imagebutton alt "options" hover "gui/button/options.png" idle "gui/button/options.png" focus_mask True action ShowMenu("preferences"), Hide("navi_drop")
imagebutton alt "about" hover "gui/button/about.png" idle "gui/button/about.png" focus_mask True action ShowMenu("about"), Hide("navi_drop")
imagebutton alt "achievements" hover "gui/button/achievements.png" idle "gui/button/achievements.png" focus_mask True action ShowMenu("achievements"), Hide("navi_drop")
imagebutton alt "main menu" hover "gui/button/main.png" idle "gui/button/main.png" focus_mask True action renpy.full_restart
transform navigation_appear:
on show:
ypos -1280
linear .18 ypos 100
on hide:
linear .18 ypos -1280
style navi_drop_frame:
background Frame(gui.main_menu_base, gui.navi_drop_frame_borders, tile=gui.frame_tile)
padding gui.navi_drop_frame_borders.padding
xpos gui.navi_drop_menu_xpos
ypos gui.navi_drop_menu_ypos
Code: Select all
## Navi screen #################################################################
##
screen navi():
hbox:
imagebutton alt "menu" hover "gui/button/menu.png" idle "gui/button/menu.png" focus_mask True action Show("navi_drop")
I can provide the full game code if requested.