refactor(HInfoComp): 简化节点路径查找逻辑

style(btn_yellow.prefab): 调整按钮位置和大小
docs(ubgs.plist.meta): 更新精灵帧元数据信息
This commit is contained in:
panw
2025-12-22 15:29:28 +08:00
parent ee1072c0dc
commit 366e72d72d
4 changed files with 3343 additions and 114 deletions

View File

@@ -64,12 +64,12 @@ 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.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.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("hp")
this.mp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mp")
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap")
this.map_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("map")
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def")
this.mdef_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mdef")
this.h_uuid=smc.fight_hero
this.update_data(this.h_uuid)
this.load_all_hero(this.h_uuid)