challenge-editor/scene/ability_to_cards_side_card.gd
2024-10-10 18:09:32 +08:00

19 lines
281 B
GDScript

extends TextureRect
signal click
var selected:bool=false:
set(val):
selected=val
if selected:
%selected.show()
else:
%selected.hide()
func set_text(text:String):
$Label.text=text
func _on_click_pressed() -> void:
click.emit()
pass # Replace with function body.