challenge-editor/scene/skill_config_card_down.gd
2024-10-04 18:08:33 +08:00

17 lines
313 B
GDScript

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