/** * AutoCodeEui 生成的界面 * http://svn.jiulingwan.com/CQLL/cqll-devel/client/tags/tools/AutoCodeEUI * euiPath:${path} * made by ${auth} * create on ${time} */ class ${shortName}Mediator extends ViewMediatorBase{ private _module:${shortName}Module; constructor(module:${shortName}Module) { super("${shortName}Mediator"); this._module = module; } public get view():${shortName}MainView{ return this._view as ${shortName}MainView; } protected initView(){ this._view = new ${shortName}MainView(); } public dispose():void{ super.dispose(); } protected createComplete(e:egret.Event) { let self = this; super.createComplete(e); new ResizeController(self.view, self.view.gameWindow.img_windowBg); //TODO 创建完毕 } public addEventListeners():void { let self = this; let {gameWindow , panel} = self.view; let {btn_back, btn_close, btn_explain} = gameWindow; btn_back.clk(self.hidePanel, self); btn_close.clk(self.hidePanel, self); btn_explain.clk(self.getExplain, self); } public showPanel(){ UIManager.ins.pop(this._view); } public hidePanel(){ UIManager.ins.remove(this._view); } /**说明Tips */ public getExplain(): void { UIManager.ins.showRuledesc(ModuleID.${moduleID}, 0); } }