各类弹窗重新设计,使用opps 集成的方式
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,UITransform,v3 } from "cc";
|
||||
import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,tween,UITransform,v3 } from "cc";
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
@@ -93,6 +93,12 @@ export class CardControllerComp extends CCComp {
|
||||
this.node.getChildByName("bar").getChildByName("home_btn").getChildByName("bg").active=false
|
||||
|
||||
}
|
||||
item_info_show(){
|
||||
this.node.getChildByName("item_info").setScale(1,1,1)
|
||||
}
|
||||
item_info_hide(){
|
||||
this.node.getChildByName("item_info").setScale(0,0,1)
|
||||
}
|
||||
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
this.node.destroy();
|
||||
|
||||
Reference in New Issue
Block a user