We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8630a commit a6f9366Copy full SHA for a6f9366
addons/block_code/drag_manager/drag_manager.gd
@@ -22,7 +22,9 @@ class Drag:
22
get:
23
return action
24
set(value):
25
- action = value
+ if action != value:
26
+ action = value
27
+ _update_action_hint()
28
29
var target_snap_point: SnapPoint:
30
@@ -122,6 +124,13 @@ class Drag:
122
124
var from_global: Vector2 = _block.global_position
123
125
return from_global.distance_to(snap_point.global_position)
126
127
+ func _update_action_hint():
128
+ match action:
129
+ DragAction.REMOVE:
130
+ _block.modulate = Color(1.0, 1.0, 1.0, 0.5)
131
+ _:
132
+ _block.modulate = Color.WHITE
133
+
134
func _update_preview():
135
if _preview_block:
136
_preview_block.queue_free()
0 commit comments