12345678910111213141516171819202122232425 |
- 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_Sign } from './Layout_Sign';
- import { ani_ui } from '../UI_Main/UI_Main';
- const { ccclass, property } = _decorator;
- @ccclass('UI_Sign')
- export class UI_Sign extends ui_base {
- constructor() {
- super(ModuleDef.GAME, 'ui/UI_Sign/Sign', GameUILayers.HUD, Layout_Sign);
- }
- protected async onCreated() {
- const layout = this.getLayout<Layout_Sign>();
- ani_ui(layout.Return.node.parent.parent);
- this.onButtonEvent(layout.Return, () => {
- gui.close(UI_Sign);
- })
- }
- }
|