UIWithdraw.ts 547 B

12345678910111213141516171819
  1. import { UIViewID } from '@scripts/define/UIDefine';
  2. import { UIPopup } from '@scripts/framework/ui/UIPopup';
  3. import { addBtnClick } from '@scripts/utils/UIHelper';
  4. import { _decorator, Button, Component, Node } from 'cc';
  5. const { ccclass, property } = _decorator;
  6. @ccclass('UIWithdraw')
  7. export class UIWithdraw extends UIPopup {
  8. readonly viewId: UIViewID = UIViewID.UIWithdraw;
  9. @property(Button)
  10. btnClose: Button;
  11. protected onCreate(): void | Promise<void> {
  12. addBtnClick(this.btnClose, this.closeSelf, this);
  13. }
  14. }