UIAboutQLZ.ts 592 B

12345678910111213141516171819
  1. import { _decorator, Component, Node } from 'cc';
  2. import { GameUILayers } from '../../scripts/GameUILayers';
  3. import { Layout_UIAboutQLZ } from './Layout_UIAboutQLZ';
  4. import { ModuleDef } from '../../scripts/ModuleDef';
  5. @tgx_class(ModuleDef.BASIC)
  6. export class UIAboutQLZ extends tgx.UIController {
  7. constructor(){
  8. super('ui_about_qlz/ui_about_qlz',GameUILayers.POPUP,Layout_UIAboutQLZ);
  9. }
  10. protected onCreated(): void {
  11. let layout = this._layout as Layout_UIAboutQLZ;
  12. this.onButtonEvent(layout.btnClose,()=>{
  13. this.close();
  14. });
  15. }
  16. }