|
@@ -3155,8 +3155,12 @@
|
|
|
xGame.common.d2World.getHelpLine();
|
|
|
xGame.common.clickedBall = true;
|
|
|
console.log('zh:点击之后=判断引导');
|
|
|
- this.checkGuide();
|
|
|
- this.checkGuideForLianXi();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.checkGuideForLianXi();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.checkGuide();
|
|
|
+ }
|
|
|
}
|
|
|
checkGuide() {
|
|
|
let guide = DataMgr.getSkillGuide();
|
|
@@ -5194,11 +5198,11 @@
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
|
- this.ui.myNode.n_yd_3.visible = true;
|
|
|
+ this.ui.myNode.n_yd_lxms_3.visible = true;
|
|
|
console.log('zh:yinDaoForLianxi 333 set ok');
|
|
|
}
|
|
|
else {
|
|
|
- this.ui.myNode.n_yd_3.visible = false;
|
|
|
+ this.ui.myNode.n_yd_lxms_3.visible = false;
|
|
|
console.log('zh:无需引导33');
|
|
|
}
|
|
|
}
|
|
@@ -5412,11 +5416,11 @@
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
|
- this.ui.myNode.n_yd.visible = true;
|
|
|
+ this.ui.myNode.n_yd_lxms_2.visible = true;
|
|
|
console.log('zh:yinDaoForLianxi 222 set ok');
|
|
|
}
|
|
|
else {
|
|
|
- this.ui.myNode.n_yd.visible = false;
|
|
|
+ this.ui.myNode.n_yd_lxms_2.visible = false;
|
|
|
console.log('zh:无需引导');
|
|
|
}
|
|
|
}
|
|
@@ -6863,8 +6867,11 @@
|
|
|
Laya.timer.clearAll(this);
|
|
|
xGame.soundMgr.playSound("s_start");
|
|
|
xGame.common.showGirlTalkPop(13, this.ui.talkNode, this.ui.talkNode.womanTxt);
|
|
|
- let guide = DataMgr.getSkillGuide();
|
|
|
- this.ui.guideNode.visible = guide == 0;
|
|
|
+ let guide = 0;
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 2) {
|
|
|
+ guide = DataMgr.getSkillGuide();
|
|
|
+ this.ui.guideNode.visible = guide == 0;
|
|
|
+ }
|
|
|
let item = this.getSkillItemByUIIndex(0);
|
|
|
if (guide == 0) {
|
|
|
item.ui.c1.selectedIndex = 1;
|
|
@@ -6872,7 +6879,9 @@
|
|
|
else {
|
|
|
item.ui.c1.selectedIndex = 0;
|
|
|
}
|
|
|
- this.ui.guideNode.guideBtn.visible = guide == 0;
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 2) {
|
|
|
+ this.ui.guideNode.guideBtn.visible = guide == 0;
|
|
|
+ }
|
|
|
for (let index = 0; index < this.displayList.length; index++) {
|
|
|
this.displayList[index].checkTry();
|
|
|
}
|
|
@@ -7745,6 +7754,7 @@
|
|
|
DataMgr.setChallengeMode_overLev(1);
|
|
|
this.setDefaultSignData();
|
|
|
DataMgr.setBigSkillFormServer('[1, 1, 1, 1, 1]');
|
|
|
+ DataMgr.setCurBallRod(5);
|
|
|
}
|
|
|
setDefaultSignData() {
|
|
|
DataMgr.setSignData(1);
|
|
@@ -7860,17 +7870,31 @@
|
|
|
}
|
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
|
- let guide = DataMgr.getSkillGuide();
|
|
|
- if (guide == 1) {
|
|
|
- let randTime = xGame.common.randomNum(300, 800);
|
|
|
- if (this.firstEnter) {
|
|
|
- console.log("zh: firstEnter");
|
|
|
+ let isGuideOver = false;
|
|
|
+ let randTime = xGame.common.randomNum(300, 800);
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ let guide = DataMgr.getLianXiGuide();
|
|
|
+ if (guide == 1) {
|
|
|
+ isGuideOver = true;
|
|
|
+ this.ui.n_yd_lxms_1.visible = false;
|
|
|
this.firstEnter = false;
|
|
|
- randTime += 900;
|
|
|
}
|
|
|
- else {
|
|
|
- console.log("zh: no firstEnter");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ let guide = DataMgr.getSkillGuide();
|
|
|
+ if (guide == 1) {
|
|
|
+ isGuideOver = true;
|
|
|
+ if (this.firstEnter) {
|
|
|
+ console.log("zh: firstEnter");
|
|
|
+ this.firstEnter = false;
|
|
|
+ randTime += 900;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log("zh: no firstEnter");
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
+ if (isGuideOver) {
|
|
|
Laya.timer.once(randTime, this, () => {
|
|
|
});
|
|
|
Laya.timer.once(1000, this, () => {
|
|
@@ -7883,7 +7907,12 @@
|
|
|
}
|
|
|
event_gameConfigReadyMark() {
|
|
|
console.log('zh:事件触发,配置加载OK');
|
|
|
- this.showGuideForLianxi();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.showGuideForLianxi();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.showGuide();
|
|
|
+ }
|
|
|
}
|
|
|
showGuideForLianxi() {
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
@@ -8991,6 +9020,10 @@
|
|
|
}
|
|
|
}
|
|
|
shareGame() {
|
|
|
+ if (2 > 1) {
|
|
|
+ this.hideSelf();
|
|
|
+ return;
|
|
|
+ }
|
|
|
Moyu.sendDataEvent("VideoShare");
|
|
|
if (Moyu.canShare() > 100) {
|
|
|
Moyu.shareGame((success) => {
|
|
@@ -9139,8 +9172,12 @@
|
|
|
this.selfTurn = true;
|
|
|
}
|
|
|
xGame.common.gameUI.setTurnAlpha(this.selfTurn);
|
|
|
- this.checkGuide();
|
|
|
- this.checkGuideForPlaceBall();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.checkGuideForPlaceBall();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.checkGuide();
|
|
|
+ }
|
|
|
if (xGame.common.uiRodMethod)
|
|
|
xGame.common.uiRodMethod.resetRod();
|
|
|
xGame.common.d2World.getHelpLine();
|
|
@@ -9251,15 +9288,14 @@
|
|
|
console.log('zh:xGame.common.gameMode=' + xGame.common.gameMode);
|
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.placeBall) {
|
|
|
gameUI.n_lxms_yd1.visible = true;
|
|
|
+ let oneBall = this.getOneBallForPlaceBall();
|
|
|
+ gameUI.n_lxms_yd1.fingerNode.x = oneBall.gameObj.x + 15;
|
|
|
+ gameUI.n_lxms_yd1.fingerNode.y = oneBall.gameObj.y;
|
|
|
}
|
|
|
else {
|
|
|
gameUI.n_lxms_yd1.visible = false;
|
|
|
return;
|
|
|
}
|
|
|
- let oneBall = this.getOneBallForPlaceBall();
|
|
|
- gameUI.n_lxms_yd1.visible = true;
|
|
|
- gameUI.n_lxms_yd1.fingerNode.x = oneBall.gameObj.x + 30;
|
|
|
- gameUI.n_lxms_yd1.fingerNode.y = oneBall.gameObj.y;
|
|
|
}
|
|
|
getOneBall() {
|
|
|
let arr = xGame.common.d2World.ballArr;
|
|
@@ -11446,15 +11482,16 @@
|
|
|
this.updateHead();
|
|
|
let curUse = DataMgr.getCurBallRod();
|
|
|
this.getGanZiImg();
|
|
|
- this.yinDaoForLianxi();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ Laya.timer.once(3000, this, () => {
|
|
|
+ this.yinDaoForLianxi();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ }
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
yinDaoForLianxi() {
|
|
|
- let g = DataMgr.getSkillGuide();
|
|
|
- if (g === 0) {
|
|
|
- console.log('zh:默认的引导还没有完毕');
|
|
|
- return;
|
|
|
- }
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
@@ -11725,8 +11762,12 @@
|
|
|
}
|
|
|
xGame.common.d2World.d2Gan.rotateSelf(yy, true);
|
|
|
let h = ruler1.height;
|
|
|
- this.checkGuide();
|
|
|
- this.checkGuideForLxms();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.checkGuideForLxms();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.checkGuide();
|
|
|
+ }
|
|
|
this.isMoveRod = true;
|
|
|
if (ruler1.y >= h) {
|
|
|
ruler1.y = -h;
|
|
@@ -11780,8 +11821,12 @@
|
|
|
xGame.common.d2World.shoot(this.powerNum);
|
|
|
xGame.common.d2World.d2Gan.shoot();
|
|
|
xGame.common.d2World.d2HelpLine.shoot();
|
|
|
- this.finishGuide();
|
|
|
- this.finishGuideForLxms();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.finishGuideForLxms();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.finishGuide();
|
|
|
+ }
|
|
|
this.ui.powerEft.visible = false;
|
|
|
this.ui.colorNode.visible = false;
|
|
|
let ganStr = "";
|
|
@@ -11832,6 +11877,7 @@
|
|
|
this.pressTarget = -1;
|
|
|
}
|
|
|
checkGuide() {
|
|
|
+ console.log('zh:111111111111aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafFFFFFFFFFFFFFFFFFF');
|
|
|
let guide = DataMgr.getSkillGuide();
|
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.bigMove && xGame.common.guideStep == 1) {
|
|
|
xGame.common.guideStep++;
|
|
@@ -11842,6 +11888,7 @@
|
|
|
checkGuideForLxms() {
|
|
|
let guide = DataMgr.getLianXiGuide();
|
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.placeBall && xGame.common.guideStepForLianXi == 2) {
|
|
|
+ xGame.common.gameUI.ui.n_lxms_yd1.visible = false;
|
|
|
xGame.common.gameUI.ui.n_lxms_yd2.visible = false;
|
|
|
xGame.common.gameUI.ui.n_lxms_yd3.visible = true;
|
|
|
xGame.common.guideStepForLianXi = 3;
|
|
@@ -13370,7 +13417,7 @@
|
|
|
this.guide2 = (this.getChild("guide2"));
|
|
|
this.yd = (this.getChild("yd"));
|
|
|
this.yd_zzq_btn = (this.getChild("yd_zzq_btn"));
|
|
|
- this.n_yd = (this.getChild("n_yd"));
|
|
|
+ this.n_yd_lxms_2 = (this.getChild("n_yd_lxms_2"));
|
|
|
this.t0 = this.getTransition("t0");
|
|
|
}
|
|
|
}
|
|
@@ -16872,7 +16919,7 @@
|
|
|
this.n32 = (this.getChild("n32"));
|
|
|
this.n33 = (this.getChild("n33"));
|
|
|
this.n_yd_zzq_btn3 = (this.getChild("n_yd_zzq_btn3"));
|
|
|
- this.n_yd_3 = (this.getChild("n_yd_3"));
|
|
|
+ this.n_yd_lxms_3 = (this.getChild("n_yd_lxms_3"));
|
|
|
this.t0 = this.getTransition("t0");
|
|
|
}
|
|
|
}
|
|
@@ -18662,10 +18709,11 @@
|
|
|
this.skillSuccessTimes = 0;
|
|
|
this.skillGuide = 0;
|
|
|
this.lianXiGuide = 0;
|
|
|
+ this.guideDefaultGameMode = 1;
|
|
|
this.skillAccTimes = 0;
|
|
|
this.placeBallData = [];
|
|
|
this.shareDiamondTimes = 0;
|
|
|
- this.dailyVideoShareTimes = 0;
|
|
|
+ this.dailyVideoShareTimes = 3;
|
|
|
this.secretary = [1, 0];
|
|
|
this.curSecretary = 0;
|
|
|
this.ballRod = [1, 0, 0, 0, 0, 1];
|
|
@@ -19240,6 +19288,9 @@
|
|
|
this.userData.skillAccTimes += val;
|
|
|
this.saveUserData();
|
|
|
}
|
|
|
+ static getGuideDefaultModel() {
|
|
|
+ return this.userData.guideDefaultGameMode;
|
|
|
+ }
|
|
|
static getSkillGuide() {
|
|
|
if (!xGame.common.openGuide) {
|
|
|
return 1;
|
|
@@ -20913,15 +20964,16 @@
|
|
|
this.updateHead();
|
|
|
let curUse = DataMgr.getCurBallRod();
|
|
|
this.getGanZiImg();
|
|
|
- this.yinDaoForLianxi();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ Laya.timer.once(3000, this, () => {
|
|
|
+ this.yinDaoForLianxi();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ }
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
yinDaoForLianxi() {
|
|
|
- let g = DataMgr.getSkillGuide();
|
|
|
- if (g === 0) {
|
|
|
- console.log('zh:默认的引导还没有完毕');
|
|
|
- return;
|
|
|
- }
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
@@ -21192,8 +21244,12 @@
|
|
|
}
|
|
|
xGame.common.d2World.d2Gan.rotateSelf(yy, true);
|
|
|
let h = ruler1.height;
|
|
|
- this.checkGuide();
|
|
|
- this.checkGuideForLxms();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.checkGuideForLxms();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.checkGuide();
|
|
|
+ }
|
|
|
this.isMoveRod = true;
|
|
|
if (ruler1.y >= h) {
|
|
|
ruler1.y = -h;
|
|
@@ -21247,8 +21303,12 @@
|
|
|
xGame.common.d2World.shoot(this.powerNum);
|
|
|
xGame.common.d2World.d2Gan.shoot();
|
|
|
xGame.common.d2World.d2HelpLine.shoot();
|
|
|
- this.finishGuide();
|
|
|
- this.finishGuideForLxms();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.finishGuideForLxms();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.finishGuide();
|
|
|
+ }
|
|
|
this.ui.powerEft.visible = false;
|
|
|
this.ui.colorNode.visible = false;
|
|
|
let ganStr = "";
|
|
@@ -21299,6 +21359,7 @@
|
|
|
this.pressTarget = -1;
|
|
|
}
|
|
|
checkGuide() {
|
|
|
+ console.log('zh:111111111111aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafFFFFFFFFFFFFFFFFFF');
|
|
|
let guide = DataMgr.getSkillGuide();
|
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.bigMove && xGame.common.guideStep == 1) {
|
|
|
xGame.common.guideStep++;
|
|
@@ -21309,6 +21370,7 @@
|
|
|
checkGuideForLxms() {
|
|
|
let guide = DataMgr.getLianXiGuide();
|
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.placeBall && xGame.common.guideStepForLianXi == 2) {
|
|
|
+ xGame.common.gameUI.ui.n_lxms_yd1.visible = false;
|
|
|
xGame.common.gameUI.ui.n_lxms_yd2.visible = false;
|
|
|
xGame.common.gameUI.ui.n_lxms_yd3.visible = true;
|
|
|
xGame.common.guideStepForLianXi = 3;
|
|
@@ -22349,11 +22411,11 @@
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
|
- this.ui.myNode.n_yd_3.visible = true;
|
|
|
+ this.ui.myNode.n_yd_lxms_3.visible = true;
|
|
|
console.log('zh:yinDaoForLianxi 333 set ok');
|
|
|
}
|
|
|
else {
|
|
|
- this.ui.myNode.n_yd_3.visible = false;
|
|
|
+ this.ui.myNode.n_yd_lxms_3.visible = false;
|
|
|
console.log('zh:无需引导33');
|
|
|
}
|
|
|
}
|
|
@@ -22567,11 +22629,11 @@
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
if (lianXiGuide === 0) {
|
|
|
- this.ui.myNode.n_yd.visible = true;
|
|
|
+ this.ui.myNode.n_yd_lxms_2.visible = true;
|
|
|
console.log('zh:yinDaoForLianxi 222 set ok');
|
|
|
}
|
|
|
else {
|
|
|
- this.ui.myNode.n_yd.visible = false;
|
|
|
+ this.ui.myNode.n_yd_lxms_2.visible = false;
|
|
|
console.log('zh:无需引导');
|
|
|
}
|
|
|
}
|
|
@@ -22938,8 +23000,11 @@
|
|
|
Laya.timer.clearAll(this);
|
|
|
xGame.soundMgr.playSound("s_start");
|
|
|
xGame.common.showGirlTalkPop(13, this.ui.talkNode, this.ui.talkNode.womanTxt);
|
|
|
- let guide = DataMgr.getSkillGuide();
|
|
|
- this.ui.guideNode.visible = guide == 0;
|
|
|
+ let guide = 0;
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 2) {
|
|
|
+ guide = DataMgr.getSkillGuide();
|
|
|
+ this.ui.guideNode.visible = guide == 0;
|
|
|
+ }
|
|
|
let item = this.getSkillItemByUIIndex(0);
|
|
|
if (guide == 0) {
|
|
|
item.ui.c1.selectedIndex = 1;
|
|
@@ -22947,7 +23012,9 @@
|
|
|
else {
|
|
|
item.ui.c1.selectedIndex = 0;
|
|
|
}
|
|
|
- this.ui.guideNode.guideBtn.visible = guide == 0;
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 2) {
|
|
|
+ this.ui.guideNode.guideBtn.visible = guide == 0;
|
|
|
+ }
|
|
|
for (let index = 0; index < this.displayList.length; index++) {
|
|
|
this.displayList[index].checkTry();
|
|
|
}
|
|
@@ -25243,6 +25310,7 @@
|
|
|
DataMgr.setChallengeMode_overLev(1);
|
|
|
this.setDefaultSignData();
|
|
|
DataMgr.setBigSkillFormServer('[1, 1, 1, 1, 1]');
|
|
|
+ DataMgr.setCurBallRod(5);
|
|
|
}
|
|
|
setDefaultSignData() {
|
|
|
DataMgr.setSignData(1);
|
|
@@ -25358,17 +25426,31 @@
|
|
|
}
|
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
|
- let guide = DataMgr.getSkillGuide();
|
|
|
- if (guide == 1) {
|
|
|
- let randTime = xGame.common.randomNum(300, 800);
|
|
|
- if (this.firstEnter) {
|
|
|
- console.log("zh: firstEnter");
|
|
|
+ let isGuideOver = false;
|
|
|
+ let randTime = xGame.common.randomNum(300, 800);
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ let guide = DataMgr.getLianXiGuide();
|
|
|
+ if (guide == 1) {
|
|
|
+ isGuideOver = true;
|
|
|
+ this.ui.n_yd_lxms_1.visible = false;
|
|
|
this.firstEnter = false;
|
|
|
- randTime += 900;
|
|
|
}
|
|
|
- else {
|
|
|
- console.log("zh: no firstEnter");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ let guide = DataMgr.getSkillGuide();
|
|
|
+ if (guide == 1) {
|
|
|
+ isGuideOver = true;
|
|
|
+ if (this.firstEnter) {
|
|
|
+ console.log("zh: firstEnter");
|
|
|
+ this.firstEnter = false;
|
|
|
+ randTime += 900;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log("zh: no firstEnter");
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
+ if (isGuideOver) {
|
|
|
Laya.timer.once(randTime, this, () => {
|
|
|
});
|
|
|
Laya.timer.once(1000, this, () => {
|
|
@@ -25381,7 +25463,12 @@
|
|
|
}
|
|
|
event_gameConfigReadyMark() {
|
|
|
console.log('zh:事件触发,配置加载OK');
|
|
|
- this.showGuideForLianxi();
|
|
|
+ if (DataMgr.getGuideDefaultModel() === 1) {
|
|
|
+ this.showGuideForLianxi();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.showGuide();
|
|
|
+ }
|
|
|
}
|
|
|
showGuideForLianxi() {
|
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|