refactor(heroInfo): 重构英雄信息UI展示逻辑
1. 移除废弃的fragment_node节点相关代码与引用 2. 调整英雄列表和卡片的布局尺寸与间距 3. 优化碎片数量显示的绑定方式 4. 删除无用的bak备份文件
This commit is contained in:
@@ -91,10 +91,6 @@ export class HeroInfoComp extends CCComp {
|
||||
@property(Node)
|
||||
upgrade_btn = null!
|
||||
|
||||
/** 碎片数量显示节点(Label) */
|
||||
@property(Node)
|
||||
fragment_node = null!
|
||||
|
||||
/** 碎片图标节点(挂载 ChipComp 用于渲染碎片图标) */
|
||||
@property(Node)
|
||||
chip_node = null!
|
||||
@@ -454,9 +450,6 @@ export class HeroInfoComp extends CCComp {
|
||||
const fragmentText = isMaxLv
|
||||
? `${growth.fragments} / MAX`
|
||||
: `${growth.fragments} / ${needFragments}`;
|
||||
if (this.fragment_node) {
|
||||
this.setLabelText(this.fragment_node, fragmentText);
|
||||
}
|
||||
if (this.fragment_label) {
|
||||
this.fragment_label.string = fragmentText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user