| 1234567891011121314151617181920212223242526272829303132333435 |
- import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
- import { UIViewID } from '@scripts/define/UIDefine';
- import { UICloseReason } from '@scripts/framework/ui/UILayer';
- import { addBtnClick } from '@scripts/utils/UIHelper';
- import { AppKernel } from '@scripts/app/AppKernel';
- import { UIPopup } from '@scripts/framework/ui/UIPopup';
- const { ccclass, property } = _decorator;
- @ccclass('LoginSuccess')
- export class LoginSuccess extends UIPopup {
- readonly viewId = UIViewID.LoginSuccess;
- @property(Node)
- private btnClose: Node = null;
- @property(Node)
- private btnPlay: Node = null;
- protected onCreate(): void | Promise<void> {
- addBtnClick(this.btnClose, this.onBtnCloseClick, this);
- addBtnClick(this.btnPlay, this.onBtnPlayClick, this);
- }
- private async onBtnCloseClick() {
- await AppKernel.appLobby.onLoginSuccess();
- // AppKernel.ui.close(UIViewID.LoginSuccess);
- }
- private onBtnPlayClick() {
- this.onBtnCloseClick();
- }
- }
|