On hide transform not working with buttons.
Posted: Fri Jun 17, 2022 11:46 am
Hi all. Today I encountered a problem that "on hide" transform stops working for screen menu elements that have at least one button or textbutton in them.
This happens when I need to exit the menu with the right mouse button or with Return().
Has anyone encountered this problem before?
Here's an example:
This happens when I need to exit the menu with the right mouse button or with Return().
Has anyone encountered this problem before?
Here's an example:
Code: Select all
transform show_hide_moves(diff_x=100):
on show:
xoffset diff_x
linear .3 xoffset 0
on hide:
xoffset 0
linear .2 xoffset -diff_x
screen test_screen():
tag menu
frame at show_hide_moves:
null # There may be text, images etc. Everything works well.
textbutton "1111" # But with any buttons/textbuttons/imagebuttons "on hide" stops working.
# Another screen...
# ...
textbutton "Open Test Menu" action [ShowMenu("test_screen")]