extends Panel @onready var util = preload("res://scripts/util.gd") @export var desc: String @export var cost: int @export var sprite_atlas : Vector2i func _ready(): var texture = util.get_tile_texture(sprite_atlas) $HBoxContainer/Texture.texture = texture $HBoxContainer/Texture.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED $HBoxContainer/VBoxContainer/Label.text = desc $HBoxContainer/VBoxContainer/Label2.text = str(cost)