mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(UI): 添加物品收集显示功能
- 新增CameraManager脚本用于相机管理 - 在UI场景中添加物品收集容器VBoxContainer - 扩展ItemShow类支持生成物品显示实例 - 修改EntityBase添加物品收集信号和处理逻辑 - 调整BossBar位置和布局属性
This commit is contained in:
@@ -11,3 +11,9 @@ class_name ItemShow
|
||||
func _physics_process(_delta):
|
||||
avatarTexture.texture = ItemStore.getTexture(type)
|
||||
countLabel.text = str(count)
|
||||
|
||||
static func generate(itemType: ItemStore.ItemType, itemCount: int = 1):
|
||||
var item = preload("res://components/UI/ItemShow.tscn").instantiate()
|
||||
item.type = itemType
|
||||
item.count = itemCount
|
||||
return item
|
||||
|
||||
Reference in New Issue
Block a user