UIClubRules.ts 589 B

123456789101112131415161718192021222324
  1. import { AppKernel } from '@scripts/app/AppKernel';
  2. import { UIViewID } from '@scripts/define/UIDefine';
  3. import { UIPopup } from '@scripts/framework/ui/UIPopup';
  4. import { addBtnClick } from '@scripts/utils/UIHelper';
  5. import { _decorator, Node } from 'cc';
  6. const { ccclass, property } = _decorator;
  7. @ccclass('UIClubRules')
  8. export class UIClubRules extends UIPopup {
  9. readonly viewId: UIViewID = UIViewID.UIClubRules;
  10. @property(Node)
  11. btnClose: Node;
  12. protected onCreate() {
  13. addBtnClick(this.btnClose, this.closeSelf, this);
  14. }
  15. protected onOpen() {
  16. }
  17. }