move scale factors to constraints
Some checks failed
GDScript Auto-Formatting / Auto-Format GDScript Code (pull_request) Failing after 12s
GDScript Linting / GDScript Code Quality Check (pull_request) Failing after 11s

This commit is contained in:
2025-09-27 21:20:15 +04:00
parent 9b83bec37d
commit 77971497a4
5 changed files with 16 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ func _update_visual_selection() -> void:
for i in range(menu_buttons.size()):
var button: Button = menu_buttons[i]
if i == current_menu_index:
button.scale = original_button_scales[i] * 1.1
button.scale = original_button_scales[i] * UIConstants.BUTTON_HOVER_SCALE
button.modulate = Color(1.2, 1.2, 1.0)
else:
button.scale = original_button_scales[i]

View File

@@ -212,7 +212,7 @@ func _update_visual_selection() -> void:
if control == language_stepper:
language_stepper.set_highlighted(true)
else:
control.scale = original_control_scales[i] * 1.05
control.scale = original_control_scales[i] * UIConstants.UI_CONTROL_HIGHLIGHT_SCALE
control.modulate = Color(1.1, 1.1, 0.9)
else:
# Reset highlighting

View File

@@ -175,7 +175,7 @@ func set_current_value(value: String) -> void:
func set_highlighted(highlighted: bool) -> void:
is_highlighted = highlighted
if highlighted:
scale = original_scale * 1.05
scale = original_scale * UIConstants.UI_CONTROL_HIGHLIGHT_SCALE
modulate = Color(1.1, 1.1, 0.9)
else:
scale = original_scale