I am creating a custom transition for my game menu where it eases in and out from the top instead of the usual simple dissolve.
This is the custom transition.
Code: Select all
transform gamemenu_trans:
on show:
yoffset -200
easein 0.5 yoffset 0
on hide:
easeout 0.5 yoffset -200
Code: Select all
screen game_menu():
tag menu
modal True
add "gui/ingameui/game menu/game_menu_bg.jpg" xalign 0.5 ypos 20 at gamemenu_trans
hbox at gamemenu_trans:
spacing 72
xalign 0.5
yalign 0.10
xysize (1269, 191)
box_wrap True
box_wrap_spacing 15
imagebutton auto "gui/ingameui/game menu/save_%s.png" focus_mask True action ShowMenu("save")
imagebutton auto "gui/ingameui/game menu/load_%s.png" focus_mask True action ShowMenu("load")
imagebutton auto "gui/ingameui/game menu/status_%s.png" focus_mask True action ShowMenu("pointstatus")
imagebutton auto "gui/ingameui/game menu/gloss_%s.png" focus_mask True action ShowMenu("glossarygm")
imagebutton auto "gui/ingameui/game menu/pref_%s.png" focus_mask True action ShowMenu("preference")
imagebutton auto "gui/ingameui/game menu/mm_%s.png" focus_mask True action MainMenu()
imagebutton auto "gui/ingameui/game menu/quit_%s.png" focus_mask True action Quit()
I tried to remove the dissolve from the config.enter/exit_transition but when I do that BOTH of them doesn't easeout on hide.
Removing the "on hide" makes the imagebutton easeout fine but once I place the "on hide" again it stops working. Tried replace/replaced just to make sure but that didn't do anything (for understandable reason, thought I might as well try).
I tried the alternative by changing the config.enter/exit_transition itself but that was creating a whole problem on it's own and the transition also effected the preference, save/load, etc whenever I pressed the "return" so alt way is no longer an option for me.
Tried to look it up but unfortunately everything was about how to show transition when showing screens in labels...
Hopefully this is another simple solution I overlooked