feat: implement settings menu with video, audio, and input remapping support

This commit is contained in:
Yogi Wiguna
2026-03-30 16:19:18 +08:00
parent c5da49d872
commit 91dc34a7be
8 changed files with 557 additions and 39 deletions
+3 -2
View File
@@ -189,7 +189,7 @@ func _create_touch_ui():
# Hide Put Button
if put_button:
put_button.visible = true
put_button.visible = false
# SettingsBtn signal is handled by main.gd (_toggle_pause_menu).
# We only grab the reference here in case touch_controls needs it in future,
@@ -494,6 +494,7 @@ func _apply_settings():
if grab_button:
grab_button.visible = true
grab_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
grab_button.scale = Vector2(button_scale, button_scale)
grab_button.set_anchors_preset(Control.PRESET_BOTTOM_RIGHT)
grab_button.offset_left = button_positions.grab.x
@@ -502,7 +503,7 @@ func _apply_settings():
grab_button.offset_bottom = button_positions.grab.y + button_size
if put_button:
put_button.visible = true
put_button.visible = false
if attack_mode_button:
attack_mode_button.visible = true