|
|
@@ -4,32 +4,27 @@ const { ccclass, property } = cc._decorator;
|
|
|
|
|
|
@ccclass
|
|
|
export default class FunBtns extends cc.Component {
|
|
|
- @property({ type: cc.Node, displayName: "互推" })
|
|
|
+ @property({ type: cc.Node, displayName: "农场等级奖励" })
|
|
|
btn1: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "转盘" })
|
|
|
+ @property({ type: cc.Node, displayName: "提现" })
|
|
|
btn2: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "裂变" })
|
|
|
+ @property({ type: cc.Node, displayName: "签到" })
|
|
|
btn3: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "存钱罐" })
|
|
|
+ @property({ type: cc.Node, displayName: "抽奖" })
|
|
|
btn4: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "福袋" })
|
|
|
+ @property({ type: cc.Node, displayName: "任务红包" })
|
|
|
btn5: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "签到" })
|
|
|
+ @property({ type: cc.Node, displayName: "福利" })
|
|
|
btn6: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "常规提现" })
|
|
|
+ @property({ type: cc.Node, displayName: "邀请" })
|
|
|
btn7: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "气泡红包组" })
|
|
|
- btn8: cc.Node = null;
|
|
|
- @property({ type: cc.Node, displayName: "福利礼包" })
|
|
|
- btn_redeem: cc.Node = null;
|
|
|
|
|
|
onLoad() {
|
|
|
gData.gameData.funBtns = this;
|
|
|
}
|
|
|
|
|
|
start() {
|
|
|
-
|
|
|
-
|
|
|
+ this.init();
|
|
|
}
|
|
|
|
|
|
init() {
|
|
|
@@ -40,19 +35,6 @@ export default class FunBtns extends cc.Component {
|
|
|
node_btn.active = data[i] == "1";
|
|
|
}
|
|
|
}
|
|
|
- this.updateRedeem();
|
|
|
- }
|
|
|
-
|
|
|
- private updateRedeem() {
|
|
|
- this.btn_redeem.active = gData.redeem.showBtn;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- update() {
|
|
|
- if (gData.redeem.init_btnChange) {
|
|
|
- this.updateRedeem();
|
|
|
- gData.redeem.init_btnChange = false;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|