fix(heroList): 调整英雄卡片等级显示格式与UI布局
1. 移除等级文本前缀"Lv.",仅显示纯数字等级 2. 重构cardlite预制体的等级显示UI组件:替换原精灵为文本标签,调整位置、尺寸与样式 3. 修正节点命名与层级关系,优化升级图标布局
This commit is contained in:
@@ -70,7 +70,7 @@ export class HerosListComp extends CCComp {
|
||||
@property(Prefab)
|
||||
card_lite_prefab = null!
|
||||
|
||||
/** 卡池等级 Label,直接显示 lv.X */
|
||||
/** 卡池等级 Label,直接显示 X */
|
||||
@property(Label)
|
||||
lv_label = null!
|
||||
|
||||
@@ -442,7 +442,7 @@ export class HerosListComp extends CCComp {
|
||||
private updateLvDisplay(uuid: number) {
|
||||
if (!this.lv_label) return
|
||||
const outerLv = smc.getHeroOuterLv(uuid)
|
||||
this.lv_label.string = `Lv.${outerLv}`
|
||||
this.lv_label.string = `${outerLv}`
|
||||
}
|
||||
|
||||
private updateRoleDisplay(hero: typeof HeroInfo[number]) {
|
||||
|
||||
Reference in New Issue
Block a user