1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-08 20:57:13 +08:00
Files
Dog-Lynx-And-HCN/scripts/Statemachine/ItemShow.gd
T

13 lines
360 B
GDScript
Raw Normal View History

@tool
extends HBoxContainer
@export var type: ItemStore.ItemType = ItemStore.ItemType.BASEBALL
@export var count: int = 0
@onready var avatarTexture: TextureRect = $"%avatar"
@onready var countLabel: Label = $"%count"
func _process(_delta):
avatarTexture.texture = load("res://resources/items/%s.svg" % ItemStore.idMap[type])
countLabel.text = str(count)