增加loading界面
This commit is contained in:
1 parent
a3f61a29d0
commit
e84e14783e
69 files changed
+1394
-31
No files matched your search
@@ -8,6 +8,7 @@ const { ccclass, property } = _decorator;
|
||||
@ccclass('GuestLoginView')
|
||||
export class GuestLoginView extends Component implements LoginViewPort {
|
||||
static readonly AUTHENTICATED = 'guest-authenticated';
|
||||
static readonly STATE_CHANGED = 'guest-login-state-changed';
|
||||
@property({ type: Button }) guestButton: Button | null = null;
|
||||
@property({ type: Label }) statusLabel: Label | null = null;
|
||||
private presenter: GuestLoginPresenter | null = null;
|
||||
@@ -30,6 +31,7 @@ export class GuestLoginView extends Component implements LoginViewPort {
|
||||
this.statusLabel.string = state.message;
|
||||
this.statusLabel.node.active = state.message.length > 0;
|
||||
}
|
||||
this.node.emit(GuestLoginView.STATE_CHANGED, state);
|
||||
}
|
||||
onDisable(): void { this.presenter?.cancel(); }
|
||||
onDestroy(): void {
|
||||
|
||||
Reference in new issue
Block a user