move scale factors to constraints
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user