| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 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 { SelectBox } from '@scripts/components/selectBox/SelectBox';
- import { UIPopup } from '@scripts/framework/ui/UIPopup';
- const { ccclass, property } = _decorator;
- @ccclass('ChangeAvatar')
- export class ChangeAvatar extends UIPopup {
- readonly viewId = UIViewID.ChangeAvatar;
- @property(Node)
- private btnClose: Node = null;
- @property(Node)
- private btnView: Node = null;
- @property(Node)
- private btnSubmit: Node = null;
- @property(EditBox)
- account: EditBox;
- @property(EditBox)
- code: EditBox;
- @property(EditBox)
- psd: EditBox;
- @property(EditBox)
- inviteCode: EditBox;
- @property(SelectBox)
- selectBox: SelectBox;
- protected onCreate(): void | Promise<void> {
- // addBtnClick(this.btnClose, this.onBtnCloseClick, this);
- // addBtnClick(this.btnView, this.onBtnViewClick, this);
- // addBtnClick(this.btnSubmit, this.onBtnSubmitClick, this);
- // const selectData = ["Account & Login", "Gameplay Issue", "Payment & Purchase", "Technical Issue"];
- // this.selectBox?.initSelectItems(selectData);
- }
- private onBtnCloseClick() {
- AppKernel.ui.close(UIViewID.Support);
- const loginView = AppKernel.ui.get(UIViewID.LoginView) as any;
- if (loginView && loginView?.enabled) {
- loginView?._googleWebBtn?.setActive(true);
- }
- }
- private onBtnViewClick() {
-
- }
- private onBtnSubmitClick() {
-
- }
- }
|