challenge-editor/scene/character_select_card.gd
2024-09-13 11:37:55 +08:00

19 lines
326 B
GDScript

extends TextureRect
var is_selected:bool=false:
set(val):
if val!=is_selected:
if val:
%select_texture.show()
else:
%select_texture.hide()
pass
is_selected=val
var data:Dictionary={
}
signal pressed(data)
func _on_tool_button_pressed() -> void:
pressed.emit(data)
pass # Replace with function body.