mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
14 lines
354 B
GDScript
14 lines
354 B
GDScript
@tool
|
|
extends HBoxContainer
|
|
class_name ItemShow
|
|
|
|
@export var type: ItemStore.ItemType = ItemStore.ItemType.BASEBALL
|
|
@export var count: int = 0
|
|
|
|
@onready var avatarTexture: TextureRect = $"%avatar"
|
|
@onready var countLabel: Label = $"%count"
|
|
|
|
func _physics_process(_delta):
|
|
avatarTexture.texture = ItemStore.getTexture(type)
|
|
countLabel.text = str(count)
|