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

@@ -170,9 +170,9 @@ func _update_visual_feedback() -> void:
var scale_multiplier: float
if is_selected:
# Selected: bright and 20% larger than original board size
# Selected: bright and larger than original board size
target_modulate = Color(1.2, 1.2, 1.2, 1.0)
scale_multiplier = 1.2
scale_multiplier = UIConstants.TILE_SELECTED_SCALE
DebugManager.log_debug(
(
"SELECTING tile (%d,%d): target scale %.2fx, current scale %s"
@@ -181,9 +181,9 @@ func _update_visual_feedback() -> void:
"Match3"
)
elif is_highlighted:
# Highlighted: subtle glow and 10% larger than original board size
# Highlighted: subtle glow and larger than original board size
target_modulate = Color(1.1, 1.1, 1.1, 1.0)
scale_multiplier = 1.1
scale_multiplier = UIConstants.TILE_HIGHLIGHTED_SCALE
DebugManager.log_debug(
(
"HIGHLIGHTING tile (%d,%d): target scale %.2fx, current scale %s"
@@ -194,7 +194,7 @@ func _update_visual_feedback() -> void:
else:
# Normal state: white and original board size
target_modulate = Color.WHITE
scale_multiplier = 1.0
scale_multiplier = UIConstants.TILE_NORMAL_SCALE
DebugManager.log_debug(
(
"NORMALIZING tile (%d,%d): target scale %.2fx, current scale %s"