fix(ui): connect _gui_input to receive card clicks (was dead handler)

This commit is contained in:
xiaji
2026-06-05 20:03:27 +08:00
parent c6aa60a5cd
commit 60b3856a23

View File

@@ -78,7 +78,7 @@ func set_selected(sel: bool) -> void:
_lift_tween.set_ease(Tween.EASE_OUT) _lift_tween.set_ease(Tween.EASE_OUT)
_lift_tween.tween_property(self, "position:y", LIFT_OFFSET if sel else 0.0, LIFT_DURATION) _lift_tween.tween_property(self, "position:y", LIFT_OFFSET if sel else 0.0, LIFT_DURATION)
func _on_gui_input(event: InputEvent) -> void: func _gui_input(event: InputEvent) -> void:
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed: if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
if event.double_click: if event.double_click: