This commit is contained in:
LoafyLemon 2024-11-28 20:29:17 +00:00
parent 2f4e3c3b35
commit 4597c40105
2 changed files with 8 additions and 1 deletions

View File

@ -394,6 +394,10 @@ screen navigation(default_category="save", default_subcategory=None):
# if main_menu:
# add "gui_fade_both" at gui_fade
if main_menu:
# Blocks interaction with main menu buttons
use invisible_button()
if navigation_exit:
timer 0.4 action (Hide("navigation") if main_menu else Return())

View File

@ -51,9 +51,12 @@ screen clothing_unlock(item):
screen invisible_button(action=NullAction(), keysym=None, alternate=None):
# Note: Actions cannot be passed as transclude, separate parameter is required.
button style "empty":
button style "invisible_button":
keyboard_focus False
action action
keysym keysym
alternate alternate
transclude
style invisible_button is empty:
mouse "default"