summaryrefslogtreecommitdiffstats
path: root/map.gd
diff options
context:
space:
mode:
Diffstat (limited to 'map.gd')
-rw-r--r--map.gd6
1 files changed, 3 insertions, 3 deletions
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")