dzduole 1 day ago
parent
commit
5b86429374

BIN
client/laya/bin/asset/fgui/game.obj


+ 64 - 2
client/laya/bin/js/bundle.js

@@ -5153,6 +5153,7 @@
             this.addUIClick(this.ui.closeBtn, this.hideWin);
             this.moneyNode = new MoneyNode(this.ui.moneyNode);
             this.addUIClick(this.ui.myNode.startBtn, this.startGame);
+            this.addUIClick(this.ui.myNode.n_yd_zzq_btn3, this.startGame);
         }
         show(level) {
             console.log('zh:show.');
@@ -5165,8 +5166,22 @@
             this.moneyNode.ui.c1.selectedIndex = 2;
             this.moneyNode.checkPowerTime();
             this.moneyNode.powerChange();
+            this.yinDaoForLianxi();
             this.setGlobalFont(this.ui);
         }
+        yinDaoForLianxi() {
+            let lianXiGuide = DataMgr.getLianXiGuide();
+            console.log('zh:lianXiGuide=', lianXiGuide);
+            if (lianXiGuide === 0) {
+                this.ui.myNode.n_yd_3.visible = true;
+                console.log('zh:yinDaoForLianxi 333 set ok');
+            }
+            else {
+                this.ui.myNode.n_yd_3.visible = false;
+                console.log('zh:无需引导33');
+            }
+            DataMgr.setLianXiGuide(0);
+        }
         showPreView() {
             let item;
             let data;
@@ -5374,9 +5389,9 @@
                 console.log('zh:yinDaoForLianxi 222 set ok');
             }
             else {
+                this.ui.myNode.n_yd.visible = false;
                 console.log('zh:无需引导');
             }
-            DataMgr.setLianXiGuide(1);
         }
         showLevelTipWindows() {
             xGame.soundMgr.playSound(xGame.common.btnClickStr);
@@ -15166,6 +15181,32 @@
     }
     ui_Component87_1.URL = "ui://isxx5ak7luq648t";
 
+    class ui_Component_lc3 extends fgui.GComponent {
+        static createInstance() {
+            return (fgui.UIPackage.createObject("game", "Component_lc3"));
+        }
+        onConstruct() {
+            this.n0 = (this.getChild("n0"));
+            this.n2 = (this.getChild("n2"));
+            this.n1_bai = (this.getChild("n1_bai"));
+        }
+    }
+    ui_Component_lc3.URL = "ui://isxx5ak7lvbnv5b1";
+
+    class ui_Component_shou3 extends fgui.GComponent {
+        static createInstance() {
+            return (fgui.UIPackage.createObject("game", "Component_shou3"));
+        }
+        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_shou3.URL = "ui://isxx5ak7lvbnv5b2";
+
     class ui_sqg1 extends fgui.GComponent {
         static createInstance() {
             return (fgui.UIPackage.createObject("game", "sqg1"));
@@ -16688,6 +16729,10 @@
             this.startBtn = (this.getChild("startBtn"));
             this.n28 = (this.getChild("n28"));
             this.displayRoot = (this.getChild("displayRoot"));
+            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.t0 = this.getTransition("t0");
         }
     }
@@ -16935,6 +16980,8 @@
             fgui.UIObjectFactory.setExtension(ui_UIInvitation.URL, ui_UIInvitation);
             fgui.UIObjectFactory.setExtension(ui_Invitation_com1.URL, ui_Invitation_com1);
             fgui.UIObjectFactory.setExtension(ui_Component87_1.URL, ui_Component87_1);
+            fgui.UIObjectFactory.setExtension(ui_Component_lc3.URL, ui_Component_lc3);
+            fgui.UIObjectFactory.setExtension(ui_Component_shou3.URL, ui_Component_shou3);
             fgui.UIObjectFactory.setExtension(ui_sqg1.URL, ui_sqg1);
             fgui.UIObjectFactory.setExtension(ui_sqg2.URL, ui_sqg2);
             fgui.UIObjectFactory.setExtension(ui_sqg3.URL, ui_sqg3);
@@ -22094,6 +22141,7 @@
             this.addUIClick(this.ui.closeBtn, this.hideWin);
             this.moneyNode = new MoneyNode$1(this.ui.moneyNode);
             this.addUIClick(this.ui.myNode.startBtn, this.startGame);
+            this.addUIClick(this.ui.myNode.n_yd_zzq_btn3, this.startGame);
         }
         show(level) {
             console.log('zh:show.');
@@ -22106,8 +22154,22 @@
             this.moneyNode.ui.c1.selectedIndex = 2;
             this.moneyNode.checkPowerTime();
             this.moneyNode.powerChange();
+            this.yinDaoForLianxi();
             this.setGlobalFont(this.ui);
         }
+        yinDaoForLianxi() {
+            let lianXiGuide = DataMgr.getLianXiGuide();
+            console.log('zh:lianXiGuide=', lianXiGuide);
+            if (lianXiGuide === 0) {
+                this.ui.myNode.n_yd_3.visible = true;
+                console.log('zh:yinDaoForLianxi 333 set ok');
+            }
+            else {
+                this.ui.myNode.n_yd_3.visible = false;
+                console.log('zh:无需引导33');
+            }
+            DataMgr.setLianXiGuide(0);
+        }
         showPreView() {
             let item;
             let data;
@@ -22315,9 +22377,9 @@
                 console.log('zh:yinDaoForLianxi 222 set ok');
             }
             else {
+                this.ui.myNode.n_yd.visible = false;
                 console.log('zh:无需引导');
             }
-            DataMgr.setLianXiGuide(1);
         }
         showLevelTipWindows() {
             xGame.soundMgr.playSound(xGame.common.btnClickStr);

File diff suppressed because it is too large
+ 0 - 0
client/laya/bin/js/bundle.js.map


+ 4 - 0
client/laya/src/fgui/res/game/gameBinder.ts

@@ -160,6 +160,8 @@ import ui_ModeSelection_com3 from "./ui_ModeSelection_com3";
 import ui_UIInvitation from "./ui_UIInvitation";
 import ui_Invitation_com1 from "./ui_Invitation_com1";
 import ui_Component87_1 from "./ui_Component87_1";
+import ui_Component_lc3 from "./ui_Component_lc3";
+import ui_Component_shou3 from "./ui_Component_shou3";
 import ui_sqg1 from "./ui_sqg1";
 import ui_sqg2 from "./ui_sqg2";
 import ui_sqg3 from "./ui_sqg3";
@@ -442,6 +444,8 @@ export default class gameBinder {
 		fgui.UIObjectFactory.setExtension(ui_UIInvitation.URL, ui_UIInvitation);
 		fgui.UIObjectFactory.setExtension(ui_Invitation_com1.URL, ui_Invitation_com1);
 		fgui.UIObjectFactory.setExtension(ui_Component87_1.URL, ui_Component87_1);
+		fgui.UIObjectFactory.setExtension(ui_Component_lc3.URL, ui_Component_lc3);
+		fgui.UIObjectFactory.setExtension(ui_Component_shou3.URL, ui_Component_shou3);
 		fgui.UIObjectFactory.setExtension(ui_sqg1.URL, ui_sqg1);
 		fgui.UIObjectFactory.setExtension(ui_sqg2.URL, ui_sqg2);
 		fgui.UIObjectFactory.setExtension(ui_sqg3.URL, ui_sqg3);

+ 10 - 0
client/laya/src/fgui/res/game/ui_Component85.ts

@@ -6,6 +6,8 @@ import ui_Component84 from "./ui_Component84";
 import ui_Component84_1 from "./ui_Component84_1";
 import ui_shareBtn2 from "./ui_shareBtn2";
 import ui_Component92 from "./ui_Component92";
+import ui_Component_lc3 from "./ui_Component_lc3";
+import ui_Component_shou3 from "./ui_Component_shou3";
 
 export default class ui_Component85 extends fgui.GComponent {
 
@@ -27,6 +29,10 @@ export default class ui_Component85 extends fgui.GComponent {
 	public startBtn:ui_shareBtn2;
 	public n28:fgui.GTextField;
 	public displayRoot:ui_Component92;
+	public n32:ui_Component_lc3;
+	public n33:ui_Component_shou3;
+	public n_yd_zzq_btn3:fgui.GLoader;
+	public n_yd_3:fgui.GGroup;
 	public t0:fgui.Transition;
 	public static URL:string = "ui://isxx5ak7xs1r482";
 
@@ -53,6 +59,10 @@ export default class ui_Component85 extends fgui.GComponent {
 		this.startBtn = <ui_shareBtn2>(this.getChild("startBtn"));
 		this.n28 = <fgui.GTextField>(this.getChild("n28"));
 		this.displayRoot = <ui_Component92>(this.getChild("displayRoot"));
+		this.n32 = <ui_Component_lc3>(this.getChild("n32"));
+		this.n33 = <ui_Component_shou3>(this.getChild("n33"));
+		this.n_yd_zzq_btn3 = <fgui.GLoader>(this.getChild("n_yd_zzq_btn3"));
+		this.n_yd_3 = <fgui.GGroup>(this.getChild("n_yd_3"));
 		this.t0 = this.getTransition("t0");
 	}
 }

+ 21 - 0
client/laya/src/fgui/res/game/ui_Component_lc3.ts

@@ -0,0 +1,21 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+import ui_Component_shou3 from "./ui_Component_shou3";
+
+export default class ui_Component_lc3 extends fgui.GComponent {
+
+	public n0:fgui.GGraph;
+	public n2:ui_Component_shou3;
+	public n1_bai:fgui.GImage;
+	public static URL:string = "ui://isxx5ak7lvbnv5b1";
+
+	public static createInstance():ui_Component_lc3 {
+		return <ui_Component_lc3>(fgui.UIPackage.createObject("game", "Component_lc3"));
+	}
+
+	protected onConstruct():void {
+		this.n0 = <fgui.GGraph>(this.getChild("n0"));
+		this.n2 = <ui_Component_shou3>(this.getChild("n2"));
+		this.n1_bai = <fgui.GImage>(this.getChild("n1_bai"));
+	}
+}

+ 23 - 0
client/laya/src/fgui/res/game/ui_Component_shou3.ts

@@ -0,0 +1,23 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+export default class ui_Component_shou3 extends fgui.GComponent {
+
+	public n57:fgui.GImage;
+	public n54:fgui.GImage;
+	public n55:fgui.GImage;
+	public n56:fgui.GImage;
+	public t1:fgui.Transition;
+	public static URL:string = "ui://isxx5ak7lvbnv5b2";
+
+	public static createInstance():ui_Component_shou3 {
+		return <ui_Component_shou3>(fgui.UIPackage.createObject("game", "Component_shou3"));
+	}
+
+	protected onConstruct():void {
+		this.n57 = <fgui.GImage>(this.getChild("n57"));
+		this.n54 = <fgui.GImage>(this.getChild("n54"));
+		this.n55 = <fgui.GImage>(this.getChild("n55"));
+		this.n56 = <fgui.GImage>(this.getChild("n56"));
+		this.t1 = this.getTransition("t1");
+	}
+}

+ 2 - 1
client/laya/src/ui/UILevelDisplay.ts

@@ -79,9 +79,10 @@ export default class UILevelDisplay extends UIBase {
             // console.log('zh:yinDaoForLianxi set ok')
             //  DataMgr.setLianXiGuide(1)
         } else {
+            this.ui.myNode.n_yd.visible = false;
             console.log('zh:无需引导')
         }
-        DataMgr.setLianXiGuide(1);
+
     }
 
     showLevelTipWindows() {

+ 44 - 1
client/laya/src/ui/UILevelProp.ts

@@ -53,6 +53,8 @@ export default class UILevelProp extends UIBase {
         this.moneyNode = new MoneyNode(this.ui.moneyNode);
         this.addUIClick(this.ui.myNode.startBtn, this.startGame);
 
+        this.addUIClick(this.ui.myNode.n_yd_zzq_btn3, this.startGame);
+
     }
     public show(level): void {
         console.log('zh:show.')
@@ -67,8 +69,49 @@ export default class UILevelProp extends UIBase {
         this.moneyNode.checkPowerTime();
         this.moneyNode.powerChange();
         //   this.setGlobalFont("arial", this.ui);
+
+        this.yinDaoForLianxi();
+
         this.setGlobalFont(this.ui)
     }
+
+
+    /**
+     * 练习模式 引导  ,他给人家起名字是什么挑战模式
+     */
+    yinDaoForLianxi() {
+        let lianXiGuide = DataMgr.getLianXiGuide();
+        console.log('zh:lianXiGuide=', lianXiGuide);
+        if (lianXiGuide === 0) {
+
+            this.ui.myNode.n_yd_3.visible = true;
+            console.log('zh:yinDaoForLianxi 333 set ok')
+            // let x = this.ui.myNode.startBtn.x;
+            // let y = this.ui.myNode.startBtn.y;
+            // this.ui.n_yd_zzq_btn.x = x;
+            // this.ui.n_yd_zzq_btn.y = y;
+
+
+            // let x1 = this.ui.myNode.x;
+            // let y1 = this.ui.myNode.y;
+            // this.ui.n_lc3.x = x1;
+            // this.ui.n_lc3.y = y1;
+
+
+
+
+
+
+        } else {
+            this.ui.myNode.n_yd_3.visible = false;
+            console.log('zh:无需引导33')
+        }
+        DataMgr.setLianXiGuide(0);
+    }
+
+
+
+
     //展示关卡预览图
     showPreView() {
         let item: ShowItem;
@@ -214,7 +257,7 @@ export default class UILevelProp extends UIBase {
         JSBridgeUtils.instance.logEventForAdHaveParams('challenge_level_start', reqStr);
     }
 
-    
+
     public hideWin() {
         super.hide();
         // 重置start按钮状态

Some files were not shown because too many files changed in this diff