123456789101112131415161718192021222324 |
- import { _decorator, Component, Node } from 'cc';
- import { GameUILayers, gui } from 'db://assets/core/ui/ui';
- import ui_base from 'db://assets/core/ui/ui_base';
- import { ModuleDef } from 'db://assets/Scripts/ModuleDef';
- import { Layout_Invite } from './Layout_Invite';
- import { ani_ui } from '../UI_Main/UI_Main';
- const { ccclass, property } = _decorator;
- @ccclass('UI_Invite')
- export class UI_Invite extends ui_base {
- constructor() {
- super(ModuleDef.GAME, 'ui/UI_Invite/Invite', GameUILayers.HUD, Layout_Invite);
- }
- protected async onCreated() {
- const layout = this.getLayout<Layout_Invite>();
- ani_ui(layout.Close_Btn.node.parent);
- this.onButtonEvent(layout.Close_Btn, () => {
- gui.close(UI_Invite);
- })
- }
- }
|