底部按钮ui
This commit is contained in:
@@ -36,7 +36,18 @@ export class MissionHomeComp extends CCComp {
|
||||
uodate_data(){
|
||||
smc.syncData()
|
||||
}
|
||||
|
||||
btn_func(e:string,data:any){
|
||||
let btns=this.node.getChildByName("btns")
|
||||
let btn=btns.getChildByName(data)
|
||||
let act=btn.getChildByName("act")
|
||||
console.log("[MissionHomeComp]:btn_func",e,data)
|
||||
if(act.active){
|
||||
act.active=false
|
||||
}else{
|
||||
act.active=true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
|
||||
Reference in New Issue
Block a user