challenge-editor/scene/character_select_card.gd

20 lines
327 B
GDScript3
Raw Normal View History

2024-09-13 11:37:55 +08:00
extends TextureRect
2024-09-18 17:57:10 +08:00
2024-09-13 11:37:55 +08:00
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.