|
@@ -4666,6 +4666,7 @@
|
|
|
}));
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh:startGame no power');
|
|
|
xGame.uiMgr.Show(UIPower);
|
|
|
}
|
|
|
}
|
|
@@ -6672,17 +6673,31 @@
|
|
|
clickRightBtn() {
|
|
|
switch (xGame.common.gameMode) {
|
|
|
case GameMode.classic:
|
|
|
+ console.log('zh:clickRightBtn 111');
|
|
|
case GameMode.bigMove:
|
|
|
+ console.log('zh:clickRightBtn 222');
|
|
|
this.restartGame();
|
|
|
break;
|
|
|
case GameMode.placeBall:
|
|
|
+ console.log('zh:clickRightBtn 333');
|
|
|
let level = xGame.common.placeBallCurLevel;
|
|
|
let data = DataMgr.getPlaceBallLevel(level);
|
|
|
let curPss = data.play && !data.isCur;
|
|
|
if (curPss) {
|
|
|
- this.powerStartPlaceBallLevel(level + 1, this.ui.rightBtn);
|
|
|
+ console.log('zh:clickRightBtn 333-111');
|
|
|
+ console.log('zh:当前LV=' + level);
|
|
|
+ if (level == 60) {
|
|
|
+ xGame.uiMgr.Show(UIMsg, "Congratulations on passing all levels.");
|
|
|
+ Laya.timer.once(3000, this, () => {
|
|
|
+ this.returnHome();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.powerStartPlaceBallLevel(level + 1, this.ui.rightBtn);
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh:clickRightBtn 333-000');
|
|
|
Moyu.sendDataEvent("placeBallNextLevel");
|
|
|
Moyu.showVideoAd(() => {
|
|
|
DataMgr.setPlaceBallLevel(level, 1);
|
|
@@ -6691,6 +6706,7 @@
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
+ console.log('zh:clickRightBtn 444');
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -18581,17 +18597,31 @@
|
|
|
clickRightBtn() {
|
|
|
switch (xGame.common.gameMode) {
|
|
|
case GameMode.classic:
|
|
|
+ console.log('zh:clickRightBtn 111');
|
|
|
case GameMode.bigMove:
|
|
|
+ console.log('zh:clickRightBtn 222');
|
|
|
this.restartGame();
|
|
|
break;
|
|
|
case GameMode.placeBall:
|
|
|
+ console.log('zh:clickRightBtn 333');
|
|
|
let level = xGame.common.placeBallCurLevel;
|
|
|
let data = DataMgr.getPlaceBallLevel(level);
|
|
|
let curPss = data.play && !data.isCur;
|
|
|
if (curPss) {
|
|
|
- this.powerStartPlaceBallLevel(level + 1, this.ui.rightBtn);
|
|
|
+ console.log('zh:clickRightBtn 333-111');
|
|
|
+ console.log('zh:当前LV=' + level);
|
|
|
+ if (level == 60) {
|
|
|
+ xGame.uiMgr.Show(UIMsg$1, "Congratulations on passing all levels.");
|
|
|
+ Laya.timer.once(3000, this, () => {
|
|
|
+ this.returnHome();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.powerStartPlaceBallLevel(level + 1, this.ui.rightBtn);
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh:clickRightBtn 333-000');
|
|
|
Moyu.sendDataEvent("placeBallNextLevel");
|
|
|
Moyu.showVideoAd(() => {
|
|
|
DataMgr.setPlaceBallLevel(level, 1);
|
|
@@ -18600,6 +18630,7 @@
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
+ console.log('zh:clickRightBtn 444');
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -18737,6 +18768,7 @@
|
|
|
}));
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh:startGame no power');
|
|
|
xGame.uiMgr.Show(UIPower$1);
|
|
|
}
|
|
|
}
|