diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-11-28 23:06:46 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-11-28 23:06:46 +0200 |
| commit | 121c3ca9c0080005bdeebc6827aecf2b36721286 (patch) | |
| tree | 9c50cafc539c54949be708d8afbc9a3960dfff0a /top.gd | |
| parent | 63e638242316ed011bea9c6defea81a68062e8fc (diff) | |
Add action button to ts ui
Diffstat (limited to 'top.gd')
| -rw-r--r-- | top.gd | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -14,6 +14,7 @@ func _ready() -> void: $PauseMenu.deactivate() get_tree().call_group("ui_movement", "set_visible", false) get_tree().call_group("ui_menu", "set_visible", false) + get_tree().call_group("ui_action", "set_visible", false) var room = preload(ROOM_MAIN_MENU).instantiate() active_room_name = room.name @@ -36,6 +37,7 @@ func replace_active_room(new_room: Node, on_changed: Callable): var show_touchscreen_ui = (new_room.name != "MainMenu") get_tree().call_group("ui_movement", "set_visible", show_touchscreen_ui) get_tree().call_group("ui_menu", "set_visible", show_touchscreen_ui) + get_tree().call_group("ui_action", "set_visible", show_touchscreen_ui) active_room_name = new_room.name new_room.name = "ActiveRoom" |
