🎨 Auto-format GDScript code
Automated formatting applied by tools/run_development.py 🤖 Generated by Gitea Actions Workflow: Continuous Integration Run: http://server:3000/nett00n/skelly/actions/runs/90
This commit is contained in:
@@ -123,9 +123,7 @@ func remove_gem_type(gem_index: int) -> bool:
|
||||
return false
|
||||
|
||||
if active_gem_types.size() <= 2: # Keep at least 2 gem types
|
||||
DebugManager.log_warn(
|
||||
"Cannot remove gem type - minimum 2 types required", "Tile"
|
||||
)
|
||||
DebugManager.log_warn("Cannot remove gem type - minimum 2 types required", "Tile")
|
||||
return false
|
||||
|
||||
active_gem_types.erase(gem_index)
|
||||
@@ -180,12 +178,7 @@ func _update_visual_feedback() -> void:
|
||||
DebugManager.log_debug(
|
||||
(
|
||||
"SELECTING tile (%d,%d): target scale %.2fx, current scale %s"
|
||||
% [
|
||||
grid_position.x,
|
||||
grid_position.y,
|
||||
scale_multiplier,
|
||||
sprite.scale
|
||||
]
|
||||
% [grid_position.x, grid_position.y, scale_multiplier, sprite.scale]
|
||||
),
|
||||
"Match3"
|
||||
)
|
||||
@@ -193,20 +186,12 @@ func _update_visual_feedback() -> void:
|
||||
# Highlighted: subtle glow and larger than original board size
|
||||
target_modulate = Color(1.1, 1.1, 1.1, 1.0)
|
||||
scale_multiplier = UIConstants.TILE_HIGHLIGHTED_SCALE
|
||||
(
|
||||
DebugManager
|
||||
. log_debug(
|
||||
(
|
||||
"HIGHLIGHTING tile (%d,%d): target scale %.2fx, current scale %s"
|
||||
% [
|
||||
grid_position.x,
|
||||
grid_position.y,
|
||||
scale_multiplier,
|
||||
sprite.scale
|
||||
]
|
||||
),
|
||||
"Match3"
|
||||
)
|
||||
DebugManager.log_debug(
|
||||
(
|
||||
"HIGHLIGHTING tile (%d,%d): target scale %.2fx, current scale %s"
|
||||
% [grid_position.x, grid_position.y, scale_multiplier, sprite.scale]
|
||||
),
|
||||
"Match3"
|
||||
)
|
||||
else:
|
||||
# Normal state: white and original board size
|
||||
@@ -215,12 +200,7 @@ func _update_visual_feedback() -> void:
|
||||
DebugManager.log_debug(
|
||||
(
|
||||
"NORMALIZING tile (%d,%d): target scale %.2fx, current scale %s"
|
||||
% [
|
||||
grid_position.x,
|
||||
grid_position.y,
|
||||
scale_multiplier,
|
||||
sprite.scale
|
||||
]
|
||||
% [grid_position.x, grid_position.y, scale_multiplier, sprite.scale]
|
||||
),
|
||||
"Match3"
|
||||
)
|
||||
@@ -248,11 +228,7 @@ func _update_visual_feedback() -> void:
|
||||
tween.tween_callback(_on_scale_animation_completed.bind(target_scale))
|
||||
else:
|
||||
DebugManager.log_debug(
|
||||
(
|
||||
"No scale change needed for tile (%d,%d)"
|
||||
% [grid_position.x, grid_position.y]
|
||||
),
|
||||
"Match3"
|
||||
"No scale change needed for tile (%d,%d)" % [grid_position.x, grid_position.y], "Match3"
|
||||
)
|
||||
|
||||
|
||||
@@ -288,9 +264,7 @@ func _input(event: InputEvent) -> void:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
|
||||
# Check if the mouse click is within the tile's bounds
|
||||
var local_position = to_local(get_global_mouse_position())
|
||||
var sprite_rect = Rect2(
|
||||
-TILE_SIZE / 2.0, -TILE_SIZE / 2.0, TILE_SIZE, TILE_SIZE
|
||||
)
|
||||
var sprite_rect = Rect2(-TILE_SIZE / 2.0, -TILE_SIZE / 2.0, TILE_SIZE, TILE_SIZE)
|
||||
|
||||
if sprite_rect.has_point(local_position):
|
||||
tile_selected.emit(self)
|
||||
|
||||
Reference in New Issue
Block a user