chore: 清理未使用的组件文件及更新预制体引用
- 删除多个未使用的组件文件及其meta文件,包括HeroAttrsSystem.ts、TalComp.ts、MGetComp.ts、HInfoComp.ts、SCDSystem.ts、HeroSkills.ts、MissionCardComp.ts、MissionGetsComp.ts、TalSet.ts、CardSet.ts - 新增SCastSystem.ts组件文件 - 更新角色控制器预制体结构,修复节点引用问题 - 移除无效的组件绑定,优化界面节点层次结构
This commit is contained in:
@@ -99,13 +99,9 @@ export class HInfoComp extends CCComp {
|
||||
this.type_node.getComponent(Label).string=HTypeName[HeroInfo[uuid].type]
|
||||
this.ap_node.getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()
|
||||
this.hp_node.getChildByName("num").getComponent(Label).string=HeroInfo[uuid].hp.toString()
|
||||
this.def_node.getChildByName("num").getComponent(Label).string=HeroInfo[uuid].def.toString()
|
||||
this.mp_node.getChildByName("num").getComponent(Label).string=HeroInfo[uuid].mp.toString()
|
||||
let bar_num=getPreAttr(uuid)
|
||||
this.ap_node.getChildByName("bar").getComponent(ProgressBar).progress=bar_num.ap
|
||||
this.hp_node.getChildByName("bar").getComponent(ProgressBar).progress=bar_num.hp
|
||||
this.def_node.getChildByName("bar").getComponent(ProgressBar).progress=bar_num.def
|
||||
this.mp_node.getChildByName("bar").getComponent(ProgressBar).progress=bar_num.mp
|
||||
|
||||
// 更新技能图标
|
||||
this.updateSkillIcon(this.skill1_node, skill1.icon);
|
||||
@@ -255,7 +251,6 @@ export class HInfoComp extends CCComp {
|
||||
|
||||
// 更新数据
|
||||
this.h_uuid = nextHero;
|
||||
smc.updateFihgtHero(nextHero)
|
||||
this.update_data(nextHero);
|
||||
// 执行平滑移动动画
|
||||
this.moveHeroesRight();
|
||||
@@ -275,7 +270,6 @@ export class HInfoComp extends CCComp {
|
||||
|
||||
// 更新数据
|
||||
this.h_uuid = prevHero;
|
||||
smc.updateFihgtHero(prevHero)
|
||||
this.update_data(prevHero);
|
||||
// 执行平滑移动动画
|
||||
this.moveHeroesLeft();
|
||||
@@ -304,11 +298,7 @@ export class HInfoComp extends CCComp {
|
||||
this.show_lock()
|
||||
this.close_buy()
|
||||
}
|
||||
start_mission() {
|
||||
mLogger.log(this.debugMode, 'HInfoComp', "start_mission")
|
||||
oops.message.dispatchEvent(GameEvent.MissionStart, {})
|
||||
this.node.active=false;
|
||||
}
|
||||
|
||||
moveHeroesLeft() {
|
||||
// 取消前一个待处理的异步操作
|
||||
if (this.moveTimeoutId !== null) {
|
||||
|
||||
Reference in New Issue
Block a user