updates for cleaning functionality
This commit is contained in:
@@ -191,9 +191,7 @@ func _layout_cards() -> void:
|
||||
func _on_card_gui_input(event: InputEvent, index: int) -> void:
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
|
||||
print("HandDisplay: Card clicked, index=", index)
|
||||
if index >= 0 and index < card_instances.size():
|
||||
print("HandDisplay: Emitting card_selected for ", card_instances[index].card_data.name)
|
||||
card_selected.emit(card_instances[index])
|
||||
|
||||
func _on_card_mouse_entered(index: int) -> void:
|
||||
|
||||
Reference in New Issue
Block a user