2024-09-24 11:59:54 +08:00
|
|
|
extends TextureRect
|
|
|
|
|
|
|
|
@onready var n: Label = $n
|
|
|
|
@onready var icon: TextureRect = $icon
|
|
|
|
|
|
|
|
var data:Dictionary
|
2024-09-25 11:52:36 +08:00
|
|
|
func set_data(_data:Dictionary):
|
|
|
|
data=_data
|
2024-10-04 18:08:33 +08:00
|
|
|
icon.texture=Database.get_texture(_data["icon"])
|
2024-09-24 11:59:54 +08:00
|
|
|
n.text=data["name"]
|
|
|
|
pass
|