| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { UIPopup } from '@scripts/framework/ui/UIPopup';
- import { addBtnClick } from '@scripts/utils/UIHelper';
- import { _decorator, Button, Component, Label, Node } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('UIFirstPack')
- export class UIFirstPack extends UIPopup {
- @property(Label)
- lblGC: Label;
- @property(Label)
- lblSC: Label;
- @property(Label)
- lblVIP: Label;
- @property(Button)
- btnClose: Button;
- @property(Button)
- btnPay: Button;
- protected onCreate(): void | Promise<void> {
- addBtnClick(this.btnClose, this.closeSelf, this);
- addBtnClick(this.btnPay, this.onBtnPayClick, this);
- }
- private onBtnPayClick() {
- }
- protected onOpen(_params: unknown): void | Promise<void> {
- this.lblGC.string = "";
- this.lblSC.string = "";
- this.lblVIP.string = "";
- }
- }
|