// Learn TypeScript: // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html import ToolFunc from "./ToolFunc"; import PM_UIManager from "./manager/PM_UIManager" const {ccclass, property} = cc._decorator; export enum LAYER_INDEX{ SINGLE_PER_VENUE = 0, SINGLE_VENUE = 1, GO_FISH = 2, FISH_BOOK = 3, FISH_PRESENTATION = 4, } @ccclass export default class PopManager extends PM_UIManager { singlePreVenue = null; singleVenue = null; msgBox = null; curNode:cc.Node = null; sceneLayer:cc.Node = null; // LIFE-CYCLE CALLBACKS: // onLoad () {} start () { } openPanel(idx,data){ let tsStr = "" let self = this; // switch (idx) { // case LAYER_INDEX.SINGLE_PER_VENUE: // cc.resources.load("prefab/singlePreVenueLayer",cc.Prefab,function(err,prefab:cc.Prefab) // { // let callFunc = function(tempNode){ // tempNode.getComponent("preVenueMoudle").init(self,data); // }; // self.showUI(prefab,1,callFunc); // }) // break; // case LAYER_INDEX.SINGLE_VENUE: // cc.resources.load("prefab/singleVenueLayer",cc.Prefab,function(err,prefab:cc.Prefab) // { // let callFunc = function(tempNode){ // tempNode.getComponent("singleVenueModule").init(self,data); // }; // self.showUI(prefab,1,callFunc); // }) // break; // case LAYER_INDEX.GO_FISH: // cc.resources.load("prefab/goFishingLayer",cc.Prefab,function(err,prefab:cc.Prefab) // { // let callFunc = function(tempNode){ // tempNode.getComponent("GoFishingLayer").init(self,data); // }; // self.showUI(prefab,1,callFunc); // }) // break; // case LAYER_INDEX.FISH_BOOK: // cc.resources.load("prefab/fishBookLayer",cc.Prefab,function(err,prefab:cc.Prefab) // { // let callFunc = function(tempNode){ // tempNode.getComponent("FishBookLayer").init(self,data); // }; // self.showUI(prefab,1,callFunc); // }) // break; // case LAYER_INDEX.FISH_PRESENTATION: // cc.resources.load("prefab/singleFishDetailLayer",cc.Prefab,function(err,prefab:cc.Prefab) // { // let callFunc = function(tempNode){ // tempNode.getComponent("singleFishDetailLayer").init(self.node,data); // }; // self.showUI(prefab,1,callFunc); // }) // break; // default: // break; // } } openComplete() { } init(node){ this.sceneLayer = node; } // update (dt) {} }