feat(gui): 更新胜利界面UI布局和英雄列表组件
- 调整胜利界面多个元素的位置、尺寸和激活状态,优化视觉布局 - 修改英雄列表组件,移除攻击力和生命值标签前缀,添加等级节点属性 - 更新角色控制器预制件的序列化字段
This commit is contained in:
@@ -74,6 +74,8 @@ export class HListComp extends CCComp {
|
||||
/** 向右切换按钮 */
|
||||
@property(Node)
|
||||
next_btn=null!
|
||||
@property(Node)
|
||||
lv_node=null!
|
||||
|
||||
// ======================== 运行时状态 ========================
|
||||
|
||||
@@ -217,8 +219,8 @@ export class HListComp extends CCComp {
|
||||
if (!hero) return;
|
||||
|
||||
this.setLabelText(this.name_node, hero.name);
|
||||
this.setLabelText(this.ap_node, `攻击力: ${hero.ap}`);
|
||||
this.setLabelText(this.hp_node, `生命值: ${hero.hp}`);
|
||||
this.setLabelText(this.ap_node, `${hero.ap}`);
|
||||
this.setLabelText(this.hp_node, `${hero.hp}`);
|
||||
this.updateSkillInfo(hero);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user