diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-11-21 16:56:21 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-11-21 16:56:21 +0200 |
| commit | 015e7c2d4f237c7a4f6dec21680f1726ca2fa9dc (patch) | |
| tree | f9427830911de69198a49b9bcb4afcba0ecaca6f /map.gd | |
| parent | 31d7be95a48f3d36f2daac950dbc7cdaabeb5b86 (diff) | |
Move touchscreen UI out of the room scene
Diffstat (limited to 'map.gd')
| -rw-r--r-- | map.gd | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |
