2024-09-29 18:09:09 +08:00
|
|
|
extends TextureRect
|
|
|
|
|
2024-09-30 18:06:45 +08:00
|
|
|
signal click
|
2024-09-29 18:09:09 +08:00
|
|
|
|
2024-09-30 18:06:45 +08:00
|
|
|
var data:Dictionary
|
2024-09-29 18:09:09 +08:00
|
|
|
|
2024-09-30 18:06:45 +08:00
|
|
|
func set_data(_data:Dictionary):
|
|
|
|
|
|
|
|
data=_data
|
2024-10-04 18:08:33 +08:00
|
|
|
%face.texture=Database.get_texture(data["texture"])
|
2024-09-30 18:06:45 +08:00
|
|
|
%name.text=data["name"]
|
|
|
|
%introduction.text=data["introduction"]
|
2024-09-29 18:09:09 +08:00
|
|
|
|
2024-09-30 18:06:45 +08:00
|
|
|
func _on_tool_button_pressed() -> void:
|
|
|
|
click.emit()
|
|
|
|
pass # Replace with function body.
|