|
@@ -5119,10 +5119,15 @@
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if (JSBridgeUtils.instance.showRewardAd('qjff_AD_for_uipower')) {
|
|
|
+ if (Laya.Browser.onAndroid) {
|
|
|
+ if (JSBridgeUtils.instance.showRewardAd('qjff_AD_for_uipower')) {
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('zh:AD 失败,直接发放奖励');
|
|
|
+ this.qjff_AD_for_uipower();
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
- console.log('zh:AD 失败,直接发放奖励');
|
|
|
this.qjff_AD_for_uipower();
|
|
|
}
|
|
|
}
|
|
@@ -5326,6 +5331,7 @@
|
|
|
}
|
|
|
}
|
|
|
clickSelf() {
|
|
|
+ console.log("zh:lev clickSelf");
|
|
|
if (!this.data.play)
|
|
|
return;
|
|
|
xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
@@ -5343,6 +5349,7 @@
|
|
|
this.isEject = false;
|
|
|
this.myList = this.ui.myNode.myList;
|
|
|
this.addUIClick(this.ui.closeNode.closeBtn, this.hide);
|
|
|
+ this.addUIClick(this.ui.myNode.yd_zzq_btn, this.showLevelTipWindows);
|
|
|
this.levelItemArr = [];
|
|
|
let levelNum = xGame.cfgMgr.getMaxPlaceBall();
|
|
|
this.myList.itemRenderer = Laya.Handler.create(this, this.levelItemRender, null, false);
|
|
@@ -5356,8 +5363,25 @@
|
|
|
super.show();
|
|
|
this.updateLevel();
|
|
|
this.scrollToPlace();
|
|
|
+ this.yinDaoForLianxi();
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
+ yinDaoForLianxi() {
|
|
|
+ let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
+ console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
+ if (lianXiGuide === 0) {
|
|
|
+ this.ui.myNode.n_yd.visible = true;
|
|
|
+ console.log('zh:yinDaoForLianxi 222 set ok');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('zh:无需引导');
|
|
|
+ }
|
|
|
+ DataMgr.setLianXiGuide(1);
|
|
|
+ }
|
|
|
+ showLevelTipWindows() {
|
|
|
+ xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
|
+ xGame.uiMgr.Show(UILevelProp, 1);
|
|
|
+ }
|
|
|
updateLevel() {
|
|
|
let temp;
|
|
|
for (let index = 0; index < this.levelItemArr.length; index++) {
|
|
@@ -7814,16 +7838,28 @@
|
|
|
this.showTipForGuest();
|
|
|
}
|
|
|
this.setGlobalFont(this.ui);
|
|
|
+ this.yinDaoForLianxi();
|
|
|
}
|
|
|
yinDaoForLianxi() {
|
|
|
- let x = this.ui.placeBallBtn.x;
|
|
|
- let y = this.ui.placeBallBtn.y;
|
|
|
- this.ui.n_yd_challenge_1.visible = true;
|
|
|
- this.ui.n_yd_challenge_1_hand.x = x + 150;
|
|
|
- this.ui.n_yd_challenge_1_hand.y = y;
|
|
|
- this.ui.n_yd_challenge_1_btn.x = x;
|
|
|
- this.ui.n_yd_challenge_1_btn.y = y;
|
|
|
- console.log('zh:yinDaoForLianxi set ok');
|
|
|
+ let g = DataMgr.getSkillGuide();
|
|
|
+ if (g === 0) {
|
|
|
+ console.log('zh:默认的引导还没有完毕');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
+ if (lianXiGuide == 0) {
|
|
|
+ let x = this.ui.placeBallBtn.x;
|
|
|
+ let y = this.ui.placeBallBtn.y;
|
|
|
+ this.ui.n_yd_challenge_1.visible = true;
|
|
|
+ this.ui.n_yd_challenge_1_hand.x = x + 150;
|
|
|
+ this.ui.n_yd_challenge_1_hand.y = y;
|
|
|
+ this.ui.n_yd_challenge_1_btn.x = x;
|
|
|
+ this.ui.n_yd_challenge_1_btn.y = y;
|
|
|
+ console.log('zh:yinDaoForLianxi set ok');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.ui.n_yd_challenge_1.visible = false;
|
|
|
+ }
|
|
|
}
|
|
|
showTipForGuest() {
|
|
|
let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
|
|
@@ -13221,6 +13257,10 @@
|
|
|
this.n0 = (this.getChild("n0"));
|
|
|
this.n1 = (this.getChild("n1"));
|
|
|
this.myList = (this.getChild("myList"));
|
|
|
+ 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.t0 = this.getTransition("t0");
|
|
|
}
|
|
|
}
|
|
@@ -14016,6 +14056,31 @@
|
|
|
}
|
|
|
ui_Component59.URL = "ui://isxx5ak7gg0z446";
|
|
|
|
|
|
+ class ui_Component_lc2 extends fgui.GComponent {
|
|
|
+ static createInstance() {
|
|
|
+ return (fgui.UIPackage.createObject("game", "Component_lc2"));
|
|
|
+ }
|
|
|
+ onConstruct() {
|
|
|
+ this.n0 = (this.getChild("n0"));
|
|
|
+ this.n1_bai = (this.getChild("n1_bai"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ui_Component_lc2.URL = "ui://isxx5ak7ggd1v5ay";
|
|
|
+
|
|
|
+ class ui_Component_shou2 extends fgui.GComponent {
|
|
|
+ static createInstance() {
|
|
|
+ return (fgui.UIPackage.createObject("game", "Component_shou2"));
|
|
|
+ }
|
|
|
+ onConstruct() {
|
|
|
+ this.n57 = (this.getChild("n57"));
|
|
|
+ this.n54 = (this.getChild("n54"));
|
|
|
+ this.n55 = (this.getChild("n55"));
|
|
|
+ this.n56 = (this.getChild("n56"));
|
|
|
+ this.t1 = this.getTransition("t1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ui_Component_shou2.URL = "ui://isxx5ak7ggd1v5b0";
|
|
|
+
|
|
|
class ui_RulerNode extends fgui.GComponent {
|
|
|
static createInstance() {
|
|
|
return (fgui.UIPackage.createObject("game", "RulerNode"));
|
|
@@ -16775,6 +16840,8 @@
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component53.URL, ui_Component53);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component58.URL, ui_Component58);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component59.URL, ui_Component59);
|
|
|
+ fgui.UIObjectFactory.setExtension(ui_Component_lc2.URL, ui_Component_lc2);
|
|
|
+ fgui.UIObjectFactory.setExtension(ui_Component_shou2.URL, ui_Component_shou2);
|
|
|
fgui.UIObjectFactory.setExtension(ui_RulerNode.URL, ui_RulerNode);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component108.URL, ui_Component108);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component63.URL, ui_Component63);
|
|
@@ -18403,6 +18470,7 @@
|
|
|
this.diamond = 0;
|
|
|
this.skillSuccessTimes = 0;
|
|
|
this.skillGuide = 0;
|
|
|
+ this.lianXiGuide = 0;
|
|
|
this.skillAccTimes = 0;
|
|
|
this.placeBallData = [];
|
|
|
this.shareDiamondTimes = 0;
|
|
@@ -18991,6 +19059,13 @@
|
|
|
this.userData.skillGuide = val;
|
|
|
this.saveUserData();
|
|
|
}
|
|
|
+ static setLianXiGuide(val) {
|
|
|
+ this.userData.lianXiGuide = val;
|
|
|
+ this.saveUserData();
|
|
|
+ }
|
|
|
+ static getLianXiGuide() {
|
|
|
+ return this.userData.lianXiGuide;
|
|
|
+ }
|
|
|
static getPlaceBallLevelList() {
|
|
|
return this.userData.placeBallData;
|
|
|
}
|
|
@@ -21270,10 +21345,15 @@
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if (JSBridgeUtils.instance.showRewardAd('qjff_AD_for_uipower')) {
|
|
|
+ if (Laya.Browser.onAndroid) {
|
|
|
+ if (JSBridgeUtils.instance.showRewardAd('qjff_AD_for_uipower')) {
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('zh:AD 失败,直接发放奖励');
|
|
|
+ this.qjff_AD_for_uipower();
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
- console.log('zh:AD 失败,直接发放奖励');
|
|
|
this.qjff_AD_for_uipower();
|
|
|
}
|
|
|
}
|
|
@@ -22192,6 +22272,7 @@
|
|
|
}
|
|
|
}
|
|
|
clickSelf() {
|
|
|
+ console.log("zh:lev clickSelf");
|
|
|
if (!this.data.play)
|
|
|
return;
|
|
|
xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
@@ -22209,6 +22290,7 @@
|
|
|
this.isEject = false;
|
|
|
this.myList = this.ui.myNode.myList;
|
|
|
this.addUIClick(this.ui.closeNode.closeBtn, this.hide);
|
|
|
+ this.addUIClick(this.ui.myNode.yd_zzq_btn, this.showLevelTipWindows);
|
|
|
this.levelItemArr = [];
|
|
|
let levelNum = xGame.cfgMgr.getMaxPlaceBall();
|
|
|
this.myList.itemRenderer = Laya.Handler.create(this, this.levelItemRender, null, false);
|
|
@@ -22222,8 +22304,25 @@
|
|
|
super.show();
|
|
|
this.updateLevel();
|
|
|
this.scrollToPlace();
|
|
|
+ this.yinDaoForLianxi();
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
+ yinDaoForLianxi() {
|
|
|
+ let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
+ console.log('zh:lianXiGuide=', lianXiGuide);
|
|
|
+ if (lianXiGuide === 0) {
|
|
|
+ this.ui.myNode.n_yd.visible = true;
|
|
|
+ console.log('zh:yinDaoForLianxi 222 set ok');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log('zh:无需引导');
|
|
|
+ }
|
|
|
+ DataMgr.setLianXiGuide(1);
|
|
|
+ }
|
|
|
+ showLevelTipWindows() {
|
|
|
+ xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
|
+ xGame.uiMgr.Show(UILevelProp$1, 1);
|
|
|
+ }
|
|
|
updateLevel() {
|
|
|
let temp;
|
|
|
for (let index = 0; index < this.levelItemArr.length; index++) {
|
|
@@ -25023,16 +25122,28 @@
|
|
|
this.showTipForGuest();
|
|
|
}
|
|
|
this.setGlobalFont(this.ui);
|
|
|
+ this.yinDaoForLianxi();
|
|
|
}
|
|
|
yinDaoForLianxi() {
|
|
|
- let x = this.ui.placeBallBtn.x;
|
|
|
- let y = this.ui.placeBallBtn.y;
|
|
|
- this.ui.n_yd_challenge_1.visible = true;
|
|
|
- this.ui.n_yd_challenge_1_hand.x = x + 150;
|
|
|
- this.ui.n_yd_challenge_1_hand.y = y;
|
|
|
- this.ui.n_yd_challenge_1_btn.x = x;
|
|
|
- this.ui.n_yd_challenge_1_btn.y = y;
|
|
|
- console.log('zh:yinDaoForLianxi set ok');
|
|
|
+ let g = DataMgr.getSkillGuide();
|
|
|
+ if (g === 0) {
|
|
|
+ console.log('zh:默认的引导还没有完毕');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let lianXiGuide = DataMgr.getLianXiGuide();
|
|
|
+ if (lianXiGuide == 0) {
|
|
|
+ let x = this.ui.placeBallBtn.x;
|
|
|
+ let y = this.ui.placeBallBtn.y;
|
|
|
+ this.ui.n_yd_challenge_1.visible = true;
|
|
|
+ this.ui.n_yd_challenge_1_hand.x = x + 150;
|
|
|
+ this.ui.n_yd_challenge_1_hand.y = y;
|
|
|
+ this.ui.n_yd_challenge_1_btn.x = x;
|
|
|
+ this.ui.n_yd_challenge_1_btn.y = y;
|
|
|
+ console.log('zh:yinDaoForLianxi set ok');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.ui.n_yd_challenge_1.visible = false;
|
|
|
+ }
|
|
|
}
|
|
|
showTipForGuest() {
|
|
|
let userInfo = LocalStorageManager.getItem(keyForLoginInfo);
|