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