feat: implement settings menu with video, audio, and input remapping support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user