各类弹窗重新设计,使用opps 集成的方式

This commit is contained in:
pan@work
2024-11-27 17:20:15 +08:00
parent 4ae407bd20
commit 4ba91e95fa
10 changed files with 1870 additions and 292 deletions

View File

@@ -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();