|
@@ -7707,6 +7707,7 @@
|
|
xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
|
|
xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
|
|
xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
|
|
xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
|
|
xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
|
|
xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
|
|
|
|
+ xGame.eventMgr.on("gameConfigReadyMark", this, this.event_gameConfigReadyMark);
|
|
let curUse = DataMgr.getCurSecretary();
|
|
let curUse = DataMgr.getCurSecretary();
|
|
this.changeSecretary(curUse);
|
|
this.changeSecretary(curUse);
|
|
this.ui.talkNode.visible = false;
|
|
this.ui.talkNode.visible = false;
|
|
@@ -7857,7 +7858,6 @@
|
|
xGame.soundMgr.playSound(str);
|
|
xGame.soundMgr.playSound(str);
|
|
}, 300);
|
|
}, 300);
|
|
}
|
|
}
|
|
- this.showGuide();
|
|
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
let guide = DataMgr.getSkillGuide();
|
|
let guide = DataMgr.getSkillGuide();
|
|
@@ -7880,15 +7880,14 @@
|
|
this.showTipForGuest();
|
|
this.showTipForGuest();
|
|
}
|
|
}
|
|
this.setGlobalFont(this.ui);
|
|
this.setGlobalFont(this.ui);
|
|
- this.yinDaoForLianxi();
|
|
|
|
}
|
|
}
|
|
- yinDaoForLianxi() {
|
|
|
|
- let g = DataMgr.getSkillGuide();
|
|
|
|
- if (g === 0) {
|
|
|
|
- console.log('zh:默认的引导还没有完毕');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ event_gameConfigReadyMark() {
|
|
|
|
+ console.log('zh:事件触发,配置加载OK');
|
|
|
|
+ this.showGuideForLianxi();
|
|
|
|
+ }
|
|
|
|
+ showGuideForLianxi() {
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
|
+ console.log('zh: AAAAA练习模式引导判断:lianXiGuide=' + lianXiGuide);
|
|
if (lianXiGuide == 0) {
|
|
if (lianXiGuide == 0) {
|
|
let x = this.ui.placeBallBtn.x;
|
|
let x = this.ui.placeBallBtn.x;
|
|
let y = this.ui.placeBallBtn.y;
|
|
let y = this.ui.placeBallBtn.y;
|
|
@@ -9251,7 +9250,6 @@
|
|
console.log('zh:checkGuideForPlaceBall =', guide);
|
|
console.log('zh:checkGuideForPlaceBall =', guide);
|
|
console.log('zh:xGame.common.gameMode=' + xGame.common.gameMode);
|
|
console.log('zh:xGame.common.gameMode=' + xGame.common.gameMode);
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.placeBall) {
|
|
if (guide == 0 && xGame.common.gameMode == GameMode.placeBall) {
|
|
- this.selfTurn = true;
|
|
|
|
gameUI.n_lxms_yd1.visible = true;
|
|
gameUI.n_lxms_yd1.visible = true;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -9260,7 +9258,7 @@
|
|
}
|
|
}
|
|
let oneBall = this.getOneBallForPlaceBall();
|
|
let oneBall = this.getOneBallForPlaceBall();
|
|
gameUI.n_lxms_yd1.visible = true;
|
|
gameUI.n_lxms_yd1.visible = true;
|
|
- gameUI.n_lxms_yd1.fingerNode.x = oneBall.gameObj.x;
|
|
|
|
|
|
+ gameUI.n_lxms_yd1.fingerNode.x = oneBall.gameObj.x + 30;
|
|
gameUI.n_lxms_yd1.fingerNode.y = oneBall.gameObj.y;
|
|
gameUI.n_lxms_yd1.fingerNode.y = oneBall.gameObj.y;
|
|
}
|
|
}
|
|
getOneBall() {
|
|
getOneBall() {
|
|
@@ -11467,7 +11465,6 @@
|
|
this.ui.n_lxms_yd1.visible = false;
|
|
this.ui.n_lxms_yd1.visible = false;
|
|
console.log('zh:无需引导11');
|
|
console.log('zh:无需引导11');
|
|
}
|
|
}
|
|
- DataMgr.setLianXiGuide(0);
|
|
|
|
}
|
|
}
|
|
updateSelf() {
|
|
updateSelf() {
|
|
if (xGame.common.gameMode == GameMode.classic) {
|
|
if (xGame.common.gameMode == GameMode.classic) {
|
|
@@ -18417,6 +18414,7 @@
|
|
this.npcJson = npc.Data;
|
|
this.npcJson = npc.Data;
|
|
this.httpReqOkCount++;
|
|
this.httpReqOkCount++;
|
|
console.log('zh:所有配置加载完成');
|
|
console.log('zh:所有配置加载完成');
|
|
|
|
+ xGame.eventMgr.event("gameConfigReadyMark");
|
|
}
|
|
}
|
|
catch (error) {
|
|
catch (error) {
|
|
console.error('zh:❌请求失败:', error);
|
|
console.error('zh:❌请求失败:', error);
|
|
@@ -20934,7 +20932,6 @@
|
|
this.ui.n_lxms_yd1.visible = false;
|
|
this.ui.n_lxms_yd1.visible = false;
|
|
console.log('zh:无需引导11');
|
|
console.log('zh:无需引导11');
|
|
}
|
|
}
|
|
- DataMgr.setLianXiGuide(0);
|
|
|
|
}
|
|
}
|
|
updateSelf() {
|
|
updateSelf() {
|
|
if (xGame.common.gameMode == GameMode.classic) {
|
|
if (xGame.common.gameMode == GameMode.classic) {
|
|
@@ -25208,6 +25205,7 @@
|
|
xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
|
|
xGame.eventMgr.on(CHANGE_SECRETARY, this, this.changeSecretary);
|
|
xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
|
|
xGame.eventMgr.on(LOGIN_OUT, this, this.setUserDefaultNickname);
|
|
xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
|
|
xGame.eventMgr.on(LOGIN_IN, this, this.event_login_in);
|
|
|
|
+ xGame.eventMgr.on("gameConfigReadyMark", this, this.event_gameConfigReadyMark);
|
|
let curUse = DataMgr.getCurSecretary();
|
|
let curUse = DataMgr.getCurSecretary();
|
|
this.changeSecretary(curUse);
|
|
this.changeSecretary(curUse);
|
|
this.ui.talkNode.visible = false;
|
|
this.ui.talkNode.visible = false;
|
|
@@ -25358,7 +25356,6 @@
|
|
xGame.soundMgr.playSound(str);
|
|
xGame.soundMgr.playSound(str);
|
|
}, 300);
|
|
}, 300);
|
|
}
|
|
}
|
|
- this.showGuide();
|
|
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
this.ui.guideBtn.x = this.ui.liucheng2.myMask.x;
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
this.ui.guideBtn.y = this.ui.liucheng2.myMask.y;
|
|
let guide = DataMgr.getSkillGuide();
|
|
let guide = DataMgr.getSkillGuide();
|
|
@@ -25381,15 +25378,14 @@
|
|
this.showTipForGuest();
|
|
this.showTipForGuest();
|
|
}
|
|
}
|
|
this.setGlobalFont(this.ui);
|
|
this.setGlobalFont(this.ui);
|
|
- this.yinDaoForLianxi();
|
|
|
|
}
|
|
}
|
|
- yinDaoForLianxi() {
|
|
|
|
- let g = DataMgr.getSkillGuide();
|
|
|
|
- if (g === 0) {
|
|
|
|
- console.log('zh:默认的引导还没有完毕');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ event_gameConfigReadyMark() {
|
|
|
|
+ console.log('zh:事件触发,配置加载OK');
|
|
|
|
+ this.showGuideForLianxi();
|
|
|
|
+ }
|
|
|
|
+ showGuideForLianxi() {
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
|
+ console.log('zh: AAAAA练习模式引导判断:lianXiGuide=' + lianXiGuide);
|
|
if (lianXiGuide == 0) {
|
|
if (lianXiGuide == 0) {
|
|
let x = this.ui.placeBallBtn.x;
|
|
let x = this.ui.placeBallBtn.x;
|
|
let y = this.ui.placeBallBtn.y;
|
|
let y = this.ui.placeBallBtn.y;
|