From 015e7c2d4f237c7a4f6dec21680f1726ca2fa9dc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 21 Nov 2025 16:56:21 +0200 Subject: Move touchscreen UI out of the room scene --- map.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'map.gd') diff --git a/map.gd b/map.gd index 4fa9a0c..42a5c29 100644 --- a/map.gd +++ b/map.gd @@ -22,9 +22,6 @@ func set_active_name(map_room_name: String): if active_map_room: active_map_room.color = active_color -func connect_close_map(callable: Callable): - $UnpauseButton.connect("pressed", callable) - func show_map(): visible = true $UnpauseButton.mouse_filter = Control.MOUSE_FILTER_STOP @@ -32,3 +29,6 @@ func show_map(): func hide_map(): visible = false $UnpauseButton.mouse_filter = Control.MOUSE_FILTER_IGNORE + +func _on_unpause_button_pressed() -> void: + Input.action_press("menu") -- cgit v1.3