/** * AutoCodeEui 生成的界面 * http://svn.jiulingwan.com/CQLL/cqll-devel/client/tags/tools/AutoCodeEUI * euiPath:${path} * made by ${auth} * create on ${time} */ class ${shortName}Panel extends ${shortName}UI { private _shape: egret.Shape; constructor(){ super(); } protected createComplete(): void { let self = this; self._shape = UIManager.createShape(0,0.5); } public showPanel():void { let self = this; UIManager.ins.popToParnent(self._shape, App.ins.layer.commonLayer); UIManager.ins.popToParnent(self, App.ins.layer.commonLayer); self._shape.clk(self.hidePanel,self); } public hidePanel():void { let self = this; UIManager.ins.removeFromParnent(this._shape, App.ins.layer.commonLayer); UIManager.ins.removeFromParnent(self, App.ins.layer.commonLayer); self._shape.offclk(self.hidePanel,self); } }