界面调整 去掉技能大页面
This commit is contained in:
@@ -11,6 +11,7 @@ import { MSklist, SkillSet } from "../common/config/SkillSet";
|
||||
import { MSCard } from "./MSCard";
|
||||
import { CardControllerComp } from "./CardController";
|
||||
import { MissionComp } from "./MissionComp";
|
||||
import { MSCardComp } from "./MSCardComp";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -145,7 +146,23 @@ export class MissionHomeComp extends CCComp {
|
||||
}
|
||||
hide_skills(){
|
||||
this.node.getChildByName("skills").setPosition(0,-800)
|
||||
let mscards:any= ecs.query(ecs.allOf(MSCardComp));
|
||||
for(let i=0;i<mscards.length;i++){
|
||||
mscards[i].MSCardComp.is_select=true
|
||||
mscards[i].MSCardComp.is_update=false
|
||||
mscards[i].MSCardComp.change()
|
||||
}
|
||||
this.node.getChildByName("skills").getChildByName("noset").active=false
|
||||
this.node.getChildByName("skills").getChildByName("set").active=true
|
||||
}
|
||||
set_skills(){
|
||||
let mscards:any= ecs.query(ecs.allOf(MSCardComp));
|
||||
for(let i=0;i<mscards.length;i++){
|
||||
mscards[i].MSCardComp.change_set()
|
||||
}
|
||||
this.node.getChildByName("skills").getChildByName("set").active=!this.node.getChildByName("skills").getChildByName("set").active
|
||||
this.node.getChildByName("skills").getChildByName("noset").active=!this.node.getChildByName("skills").getChildByName("noset").active
|
||||
}
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
this.node.destroy();
|
||||
|
||||
Reference in New Issue
Block a user