UI_Game.ts 703 B

1234567891011121314151617181920212223242526272829
  1. import { _decorator, Component, Node } from 'cc';
  2. import ui_base from '../../../core/ui/ui_base';
  3. import { GameUILayers } from '../../../core/ui/ui';
  4. import { ModuleDef } from '../../../scripts/ModuleDef';
  5. import { Layout_Game } from './Layout_Game';
  6. const { ccclass, property } = _decorator;
  7. @ccclass('UI_Game')
  8. export class UI_Game extends ui_base {
  9. constructor() {
  10. super(ModuleDef.GAME, "ui/UI_Game/Game", GameUILayers.GAME, Layout_Game);
  11. }
  12. protected onCreated(): void {
  13. this.showPanel();
  14. }
  15. public showPanel(): void {
  16. super.showPanel();
  17. // GameCtl.getInstance().initGame();
  18. }
  19. public new_close() {
  20. super.new_close();
  21. }
  22. }