fix(ui): connect _gui_input to receive card clicks (was dead handler)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user