challenge-editor/scene/single_identification_card.gd
2024-10-05 20:51:00 +08:00

14 lines
274 B
GDScript

extends TextureRect
var data:Dictionary
signal click
func set_data(_data:Dictionary):
data=_data
%face.texture=Database.get_texture(data["texture"])
%name.text=data["name"]
pass
func _on_tool_button_pressed() -> void:
click.emit()
pass # Replace with function body.