|
@@ -20,10 +20,6 @@ export default class ProductReward extends cc.Component {
|
|
|
node_Uncomplete: cc.Node = null;
|
|
node_Uncomplete: cc.Node = null;
|
|
|
|
|
|
|
|
onEnable() {
|
|
onEnable() {
|
|
|
- this.scheduleOnce(() => {
|
|
|
|
|
- mk.guide.open(4);
|
|
|
|
|
- }, 0.5)
|
|
|
|
|
-
|
|
|
|
|
this.lbl_times.string = `生产次数+${gData.gameData.configs.ServerConfig.ProductionAd}`;
|
|
this.lbl_times.string = `生产次数+${gData.gameData.configs.ServerConfig.ProductionAd}`;
|
|
|
|
|
|
|
|
gData.gameData.init_productTask = false;
|
|
gData.gameData.init_productTask = false;
|
|
@@ -34,25 +30,27 @@ export default class ProductReward extends cc.Component {
|
|
|
this.lbl_taskTimes.string = (count - com).toString();
|
|
this.lbl_taskTimes.string = (count - com).toString();
|
|
|
this.node_Uncomplete.active = true;
|
|
this.node_Uncomplete.active = true;
|
|
|
this.node_complete.active = false;
|
|
this.node_complete.active = false;
|
|
|
- // this.node_Uncomplete.scale = 2;
|
|
|
|
|
- // let posY = this.node_Uncomplete.y;
|
|
|
|
|
- // this.node_Uncomplete.y = posY + 200;
|
|
|
|
|
- // cc.tween(this.node_Uncomplete).delay(0.2).to(0.4, {scale: 1, y: posY}).start();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.scheduleOnce(() => {
|
|
|
|
|
+ mk.guide.curDes = `<color=8A4312>再<color=ff0000>生产${count - com}次</color>,即可<color=ff0000>提现</color>,\n快领取次数吧!</color>`;
|
|
|
|
|
+ mk.guide.open(2);
|
|
|
|
|
+ }, 0.5)
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
this.node_Uncomplete.active = false;
|
|
this.node_Uncomplete.active = false;
|
|
|
this.node_complete.active = true;
|
|
this.node_complete.active = true;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
let per = com / count;
|
|
let per = com / count;
|
|
|
cc.tween(this.sp_taskProgress).delay(0.2).to(0.3, { fillRange: per }, {
|
|
cc.tween(this.sp_taskProgress).delay(0.2).to(0.3, { fillRange: per }, {
|
|
|
onUpdate: () => {
|
|
onUpdate: () => {
|
|
|
let num = Math.round(this.sp_taskProgress.fillRange * count);
|
|
let num = Math.round(this.sp_taskProgress.fillRange * count);
|
|
|
this.lbl_progress.string = `${num}/${count}`;
|
|
this.lbl_progress.string = `${num}/${count}`;
|
|
|
}
|
|
}
|
|
|
- }).call(()=>{
|
|
|
|
|
|
|
+ }).call(() => {
|
|
|
this.lbl_progress.string = `${com}/${count}`;
|
|
this.lbl_progress.string = `${com}/${count}`;
|
|
|
}).start();
|
|
}).start();
|
|
|
- //this.sp_taskProgress.fillRange =
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|