fix: Id type now stricter

This commit is contained in:
tiger tiger tiger 2026-01-21 23:32:55 +01:00
parent 99632f6043
commit b5a4bd2896
5 changed files with 7 additions and 2 deletions

View File

@ -105,6 +105,7 @@ func _process(delta: float):
else: else:
# do adjustment with FIR filter # do adjustment with FIR filter
note.position = _smooth(note.position, note.home, delta) note.position = _smooth(note.position, note.home, delta)
note.z_index = 0

View File

@ -1,7 +1,7 @@
extends Draggable extends Draggable
class_name Card class_name Card
var card_id var card_id : StringName
enum burned { enum burned {
NOT, NOT,

View File

@ -70,6 +70,7 @@ var tween : Tween = null
func animate_home() -> void: func animate_home() -> void:
z_index = 50
if tween: tween.kill() if tween: tween.kill()
tween = create_tween().set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_QUART) tween = create_tween().set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_QUART)
tween.tween_property(self, "position", home, 0.5) tween.tween_property(self, "position", home, 0.5)
@ -114,6 +115,7 @@ func start_drag(mouse_offset: Vector2) -> void:
_drag_start_position = global_position _drag_start_position = global_position
_mouse_drag_offset = mouse_offset _mouse_drag_offset = mouse_offset
_drag_source = get_parent() _drag_source = get_parent()
z_index = 60
is_dragged = true is_dragged = true
## Updates position during drag (call from _process or manual update) ## Updates position during drag (call from _process or manual update)
@ -130,6 +132,7 @@ func find_drop_target() -> Node:
## End drag operation and return the node we want to be accepted by (if any) ## End drag operation and return the node we want to be accepted by (if any)
func end_drag() -> Node: func end_drag() -> Node:
z_index = 0
is_dragged = false is_dragged = false
_drag_source = null _drag_source = null
return null return null

View File

@ -177,6 +177,7 @@ layout_mode = 2
mouse_filter = 1 mouse_filter = 1
[node name="instructions_panel" type="PanelContainer" parent="."] [node name="instructions_panel" type="PanelContainer" parent="."]
z_index = 100
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 4 size_flags_horizontal = 4
size_flags_vertical = 0 size_flags_vertical = 0

View File

@ -2,7 +2,7 @@ extends Draggable
class_name StickyNote class_name StickyNote
var sticky_id var sticky_id
var parent_id var parent_id : StringName
var sibling: StickyNote var sibling: StickyNote
var shift_tween: Tween var shift_tween: Tween