summaryrefslogtreecommitdiffstats
path: root/top.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-28 23:06:46 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-28 23:06:46 +0200
commit121c3ca9c0080005bdeebc6827aecf2b36721286 (patch)
tree9c50cafc539c54949be708d8afbc9a3960dfff0a /top.gd
parent63e638242316ed011bea9c6defea81a68062e8fc (diff)
Add action button to ts ui
Diffstat (limited to 'top.gd')
-rw-r--r--top.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/top.gd b/top.gd
index 951ed1f..9875eab 100644
--- a/top.gd
+++ b/top.gd
@@ -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"