feat(ui): 添加英雄信息背景组件并调整属性节点路径

添加新的背景组件资源文件(bg_info.prefab)及相关元数据
修改HInfoComp.ts中属性节点的获取路径以适应新的UI结构
调整ubgs.plist中的边框参数以匹配新设计
This commit is contained in:
panw
2025-12-22 14:40:45 +08:00
parent 9ca76cd5b2
commit 5d6ceffb66
6 changed files with 4977 additions and 2078 deletions

View File

@@ -63,13 +63,13 @@ export class HInfoComp extends CCComp {
start() {
this.name_node=this.node.getChildByName("hname").getChildByName("name")
this.type_node=this.node.getChildByName("hname").getChildByName("type")
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("ap")
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("hp")
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("def")
this.mdef_node=this.node.getChildByName("info").getChildByName("base").getChildByName("mdef")
this.map_node=this.node.getChildByName("info").getChildByName("base").getChildByName("map")
this.mp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("mp")
this.type_node=this.node.getChildByName("hname").getChildByName("type")
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("hp").getChildByName("hp")
this.mp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mp").getChildByName("mp")
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap").getChildByName("ap").getChildByName("ap")
this.map_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap").getChildByName("ap").getChildByName("map")
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def").getChildByName("def").getChildByName("def")
this.mdef_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def").getChildByName("def").getChildByName("mdef")
this.h_uuid=smc.fight_hero
this.update_data(this.h_uuid)
this.load_all_hero(this.h_uuid)