summaryrefslogtreecommitdiffstats
path: root/top.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-29 16:53:21 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-29 16:53:21 +0200
commit0259b7fe3e5b2b6e1c8d73aeaa4c7c033cb96d63 (patch)
tree1b31290cd1db852ea869a692833d5b0579a9cec5 /top.gd
parentb532e98ecdbd449da63962cc6db3feef62dbe857 (diff)
Rename func
Diffstat (limited to 'top.gd')
-rw-r--r--top.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/top.gd b/top.gd
index 0049d55..4104694 100644
--- a/top.gd
+++ b/top.gd
@@ -28,7 +28,7 @@ func _ready() -> void:
func _process(_delta: float):
if Input.is_action_just_pressed("menu"):
- handle_pause()
+ toggle_pause()
func replace_active_room(new_room: Node, on_changed: Callable):
var current_room = get_node("ActiveRoom")
@@ -49,7 +49,7 @@ func replace_active_room(new_room: Node, on_changed: Callable):
func get_transition_player() -> TransitionPlayer:
return $TransitionPlayer
-func handle_pause():
+func toggle_pause():
if pause_menu.is_inside_tree():
remove_child.call_deferred(pause_menu)
else: