12345678910111213141516171819202122232425 |
- import { _decorator } from "cc";
- import { GameUILayers, gui } from "../../../core/ui/ui";
- import ui_base from "../../../core/ui/ui_base";
- import { ModuleDef } from "../../../Scripts/ModuleDef";
- import { ani_ui } from "../UI_Main/UI_Main";
- import { Layout_Invite } from "./Layout_Invite";
- 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);
- })
- }
- }
|