extends TextureRect @onready var n: Label = $n @onready var icon: TextureRect = $icon var data:Dictionary func set_data(_data:Dictionary): data=_data icon.texture=Global.get_texture(_data["icon"]) n.text=data["name"] pass