aboutsummaryrefslogtreecommitdiff
path: root/client/menu/setup.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-08 11:51:19 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-08 11:51:19 +0200
commit7bfc0993459686b83a2bed0d32e80dd6fc26e718 (patch)
treec9d9b374ead0f7ffa98aafd1c46df859be49438d /client/menu/setup.gd
parent6f5c87b6e321543efa1736d4655511087adc52de (diff)
downloadhurrycurry-7bfc0993459686b83a2bed0d32e80dd6fc26e718.tar
hurrycurry-7bfc0993459686b83a2bed0d32e80dd6fc26e718.tar.bz2
hurrycurry-7bfc0993459686b83a2bed0d32e80dd6fc26e718.tar.zst
add back button to setup menu
Diffstat (limited to 'client/menu/setup.gd')
-rw-r--r--client/menu/setup.gd9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/menu/setup.gd b/client/menu/setup.gd
index de63b801..1c4f7e12 100644
--- a/client/menu/setup.gd
+++ b/client/menu/setup.gd
@@ -50,6 +50,11 @@ func _ready():
super()
+ $Back.visible = not is_instance_of(parent_menu, Entry)
+
+func _on_back_pressed() -> void:
+ exit()
+
func _character_selected(style: Dictionary):
character_style = style
@@ -93,6 +98,6 @@ func _on_sign_pressed():
Global.save_settings()
Global.get_viewport().msaa_2d = Viewport.MSAA_DISABLED
-
- if parent_menu: exit()
+
+ if not is_instance_of(parent_menu, Entry): exit()
else: replace_menu("res://menu/main.tscn")