wuwangdong 4 gadi atpakaļ
vecāks
revīzija
26fc55464b

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 281 - 299
assets/resources/game/prefab/game.prefab


+ 1 - 1
assets/script/game/data/HttpData.ts

@@ -7,7 +7,7 @@ export class HttpData {
     /** 服务器类型 0测试服 1正式服 2李扬服 3悍国服 */
     public serverType: number = 0;
 
-    public getServerUrl(): string {
+    public getServerUrl(): string { 
         switch (this.serverType) {
             case 0:
                 return ServerUrl.test;

+ 1 - 1
assets/script/game/data/module/GuideData.ts

@@ -26,7 +26,7 @@ export class GuideData {
         let arr = [];
         let id = 1;
         for (let i = 0; i < config.length; i++) {
-            let guide = {} as GuideVO;
+            let guide = new GuideVO();
             let o = config[i];
             let a = o.id.split("_");
             guide.id = parseInt(a[0]);

+ 6 - 4
assets/script/game/game/Game.ts

@@ -1258,11 +1258,17 @@ export default class Game extends cc.Component {
                 let pos = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
                 mk.fly.PlayCoinAnim(1, 5, parentNode, pos, () => {
                     //this.refreshOrderUI(index);
+                    if(gData.gameData.orderRewardType == 1){
+                        cc.tween(this.node_showRedMoney).to(0.1, { scale: 1.3 }).to(0.1, { scale: 1 }).start();
+                    }
                 }, 0.8);
             } else {
                 let pos = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
                 mk.fly.PlayCoinAnim(1, 5, this.btn_product, pos, () => {
                     //this.refreshOrderUI(index);
+                    if(gData.gameData.orderRewardType == 1){
+                        cc.tween(this.node_showRedMoney).to(0.1, { scale: 1.3 }).to(0.1, { scale: 1 }).start();
+                    }
                 }, 0.8);
             }
             this.refreshOrderUI(index);
@@ -1291,10 +1297,6 @@ export default class Game extends cc.Component {
                 cc.Tween.stopAllByTarget(this.lbl_progress[index].node);
                 cc.tween(this.lbl_progress[index].node).to(0.1, { scale: 1.4 }).to(0.05, { scale: 1 }).start();
             }
-
-            if(gData.gameData.orderRewardType == 1){
-                cc.tween(this.node_showRedMoney).to(0.1, { scale: 1.2 }).to(0.1, { scale: 1 }).start();
-            }
         }
     }
 

+ 1 - 1
assets/script/game/module/guide/Guide.ts

@@ -61,7 +61,7 @@ export default class Guide extends cc.Component {
         this.crtGuide = this.guides[this.crtStep];
         mk.guide.curGuideIdStr = gData.guideData.crtID + "_" + this.crtStep;
         this.updateGuide();
-        if(this.crtGuide.isShowSkip == "true"){
+        if(this.crtGuide && this.crtGuide.isShowSkip == "true"){
             this.node_skip.active = true;
         }else{
             this.node_skip.active = false;

+ 1 - 1
assets/script/game/module/guide/GuideVO.ts

@@ -32,5 +32,5 @@ export default class GuideVO {
     /** 是否继续当前步骤 */
     continue: string = null;
     /** 是否显示跳过按钮 */
-    isShowSkip: string = null;
+    isShowSkip: string = "true";
 }

+ 1 - 1
assets/script/mk/system/JsbSystem.ts

@@ -151,7 +151,7 @@ export default class JsbSystem {
             //gData.appData.appId = "wx3c0cc2f730c5ad5a";
             //gData.appData.version = "1.0.0";
             gData.appData.appId = "wxd413dcac1e6a74c9";
-            gData.appData.version = "15.1.8";
+            gData.appData.version = "13.1.8";
         }
         // console.log('gData.appData  ', unicodeStr)
         // console.log('gData.appData.appId  ', gData.appData.appId)

+ 1 - 1
assets/script/mk/utils/LogUtil.ts

@@ -9,7 +9,7 @@ export default class LogUtil {
      * 是否显示Log
      * @description
      */
-    public ifShowLog: boolean = true;
+    public ifShowLog: boolean = false;
 
     /**
      * 标签符号

BIN
build/jsb-link/assets/main/index.jsc


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
build/jsb-link/assets/resources/config.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json


BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser


+ 67 - 50
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -16259,17 +16259,18 @@ return [ 2 ];
 });
 };
 e.prototype.doFlyOrderAni = function(t, e) {
+var a = this;
 void 0 === e && (e = null);
-var a = gData.gameData.playerProp.orderData;
-if (a) {
-for (var o = !0, n = a.orderTaskList.length, i = 0; i != n; ++i) {
-var r = a.orderTaskList;
-if (r[i].completeCount < r[i].taskCount) {
-o = !1;
+var o = gData.gameData.playerProp.orderData;
+if (o) {
+for (var n = !0, i = o.orderTaskList.length, r = 0; r != i; ++r) {
+var s = o.orderTaskList;
+if (s[r].completeCount < s[r].taskCount) {
+n = !1;
 break;
 }
 }
-if (o) {
+if (n) {
 this.isGray = !1;
 this.node_getOrderReward.setGray(!1, !0);
 this.node_getOrderReward.getComponent(cc.Animation).play();
@@ -16278,11 +16279,23 @@ mk.ui.closeAllUI();
 "1" == gData.gameData.funOpenData[11] && mk.guide.open(12) || mk.tip.pop("订单已完成,快提现吧!");
 }
 if (e) {
-var s = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
-mk.fly.PlayCoinAnim(1, 5, e, s, function() {}, .8);
+var c = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
+mk.fly.PlayCoinAnim(1, 5, e, c, function() {
+1 == gData.gameData.orderRewardType && cc.tween(a.node_showRedMoney).to(.1, {
+scale: 1.3
+}).to(.1, {
+scale: 1
+}).start();
+}, .8);
 } else {
-s = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
-mk.fly.PlayCoinAnim(1, 5, this.btn_product, s, function() {}, .8);
+c = this.node_orderHb.parent.convertToWorldSpaceAR(this.node_orderHb.getPosition());
+mk.fly.PlayCoinAnim(1, 5, this.btn_product, c, function() {
+1 == gData.gameData.orderRewardType && cc.tween(a.node_showRedMoney).to(.1, {
+scale: 1.3
+}).to(.1, {
+scale: 1
+}).start();
+}, .8);
 }
 this.refreshOrderUI(t);
 }
@@ -17445,13 +17458,13 @@ Object.defineProperty(a, "__esModule", {
 value: !0
 });
 a.GuideData = void 0;
-var i = function() {
+var i = t("../../module/guide/GuideVO"), r = function() {
 function t() {
 this.crtID = null;
 }
 t.prototype.init = function() {
 return o(this, void 0, void 0, function() {
-var t, e, a, o, i, r, s, c;
+var t, e, a, o, r, s, c, l;
 return n(this, function(n) {
 switch (n.label) {
 case 0:
@@ -17466,33 +17479,33 @@ case 2:
 this.data = new Map();
 a = [];
 o = 1;
-for (i = 0; i < t.length; i++) {
-r = {};
-s = t[i];
-c = s.id.split("_");
-r.id = parseInt(c[0]);
-r.step = parseInt(c[1]);
-r.trigger = s.trigger;
-r.tr_num = s.trNum;
-r.btnEnable = s.btnEnable;
-r.tr_form = s.trForm;
-r.dialog = s.dialog;
-r.dialog_pos = s.dialogPos;
-r.dialog_pos1 = s.dialogPos1;
-r.dialog_alignment = s.dialogAlignment;
-r.display_rect = s.displayRect;
-r.click_rect = s.clickRect;
-r.finger = s.finger;
-r.lag_next = parseFloat(s.lagNext);
-r.display_type = parseInt(s.trNum);
-r.continue = s.continue;
-r.isShowSkip = s.isShowSkip;
-if (o != r.id) {
+for (r = 0; r < t.length; r++) {
+s = new i.default();
+c = t[r];
+l = c.id.split("_");
+s.id = parseInt(l[0]);
+s.step = parseInt(l[1]);
+s.trigger = c.trigger;
+s.tr_num = c.trNum;
+s.btnEnable = c.btnEnable;
+s.tr_form = c.trForm;
+s.dialog = c.dialog;
+s.dialog_pos = c.dialogPos;
+s.dialog_pos1 = c.dialogPos1;
+s.dialog_alignment = c.dialogAlignment;
+s.display_rect = c.displayRect;
+s.click_rect = c.clickRect;
+s.finger = c.finger;
+s.lag_next = parseFloat(c.lagNext);
+s.display_type = parseInt(c.trNum);
+s.continue = c.continue;
+s.isShowSkip = c.isShowSkip;
+if (o != s.id) {
 this.data.set(o, a);
 a = [];
-o = r.id;
+o = s.id;
 }
-a.push(r);
+a.push(s);
 }
 this.data.set(o, a);
 return [ 2 ];
@@ -17505,9 +17518,11 @@ return this.data.get(t);
 };
 return t;
 }();
-a.GuideData = i;
+a.GuideData = r;
 cc._RF.pop();
-}, {} ],
+}, {
+"../../module/guide/GuideVO": "GuideVO"
+} ],
 GuideSystem: [ function(t, e, a) {
 "use strict";
 cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
@@ -17576,7 +17591,7 @@ value: !0
 a.default = function() {
 this.display_type = 0;
 this.continue = null;
-this.isShowSkip = null;
+this.isShowSkip = "true";
 };
 cc._RF.pop();
 }, {} ],
@@ -17894,7 +17909,7 @@ this.crtStep++;
 this.crtGuide = this.guides[this.crtStep];
 mk.guide.curGuideIdStr = gData.guideData.crtID + "_" + this.crtStep;
 this.updateGuide();
-"true" == this.crtGuide.isShowSkip ? this.node_skip.active = !0 : this.node_skip.active = !1;
+this.crtGuide && "true" == this.crtGuide.isShowSkip ? this.node_skip.active = !0 : this.node_skip.active = !1;
 mk.data.sendDataEvent(c.DataEventId.guide, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步完成");
 };
 e.prototype.updateGuide = function() {
@@ -18926,7 +18941,7 @@ e.node_fly = null;
 e.node_des = null;
 e.node_hide = null;
 e.callBack = null;
-e.node_describ = null;
+e.lbl_value = null;
 e.node_icon_1 = null;
 e.node_icon_2 = null;
 e.iconPath = "game/coregame/texture/plant_icons/plantIcon_";
@@ -18958,12 +18973,14 @@ mk.event.register("flyOrderAni", this.doFlyAni.bind(this), this);
 e.prototype.onEnable = function() {
 var t = gData.gameData.playerProp.orderData, e = gData.gameData.configs.Product, a = t.orderTaskList[this.index];
 this.realyPicture = e[a.Id - 1].picture;
+this.lbl_value && (this.lbl_value.string = t.redMoneyAddition / 100 + "");
 };
 e.prototype.update = function() {
 if (this.delay <= 0 && !this.isFinish) {
-if (!this.isDoAct && this.node_describ) {
+if (!this.isDoAct && this.lbl_value) {
 this.isDoAct = !0;
-cc.tween(this.node_describ).to(.3, {
+var t = this.lbl_value.node.parent;
+cc.tween(t).to(.3, {
 scale: 1.4
 }).to(.3, {
 scale: 1
@@ -18974,8 +18991,8 @@ if (this.node_icon_1.position.y <= -this.distance) {
 ++this.times;
 if (this.times > this.maxShowTimes) if (4 != this.speed) {
 ++this.sss;
-var t = 2 + .4 * this.sss;
-this.speed -= t;
+var e = 2 + .4 * this.sss;
+this.speed -= e;
 if (this.speed < 4) {
 this.speed = 4;
 ++this.slowSpeedRefreshTimes;
@@ -19124,8 +19141,8 @@ type: cc.Component.EventHandler
 }) ], e.prototype, "callBack", void 0);
 i([ u({
 displayName: "文字节点",
-type: cc.Node
-}) ], e.prototype, "node_describ", void 0);
+type: cc.Label
+}) ], e.prototype, "lbl_value", void 0);
 return i([ p ], e);
 }(cc.Component);
 a.default = d;
@@ -19369,7 +19386,7 @@ value: !0
 a.ServerUrl = a.HttpData = void 0;
 var o, n = function() {
 function t() {
-this.serverType = 0;
+this.serverType = 1;
 }
 t.prototype.getServerUrl = function() {
 switch (this.serverType) {
@@ -20714,7 +20731,7 @@ value: !0
 a.LogTagColor = void 0;
 var n, i = function() {
 function t() {
-this.ifShowLog = !0;
+this.ifShowLog = !1;
 this._tagChar = "...";
 this._frontChar = "    ";
 this._keyValueChar = " = ";

+ 3 - 3
packages-hot-update/cfg.json

@@ -1,5 +1,5 @@
 {
-    "version": "1.0.10",
+    "version": "1.0.11",
     "serverRootDir": "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/",
     "resourceRootDir": "D:\\projects\\team1_nc\\build\\jsb-link",
     "genManifestDir": "",
@@ -14,7 +14,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJsb/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/"
     ],
-    "buildTime": 1639535380132,
-    "genTime": 1639535380132,
+    "buildTime": 1639549718189,
+    "genTime": 1639549718189,
     "genVersion": null
 }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
packages-hot-update/manifest/project.manifest


+ 1 - 1
packages-hot-update/manifest/version.manifest

@@ -1 +1 @@
-{"version":"1.0.10","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/version.manifest"}
+{"version":"1.0.11","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfJSB/baseRemote/version.manifest"}

BIN
packages-hot-update/versions/ver_1_0.10.zip


BIN
packages-hot-update/versions/ver_1_0.11.zip


+ 4 - 4
packages/test-tools/main.js

@@ -4,10 +4,10 @@ module.exports = {
   load () {
     // execute when package loaded
 	
-	let fs = require('fs');
-	let path = require('path');
-	fs.mkdirSync(path.join(Editor.Project.path, '文件'));
-	Editor.success('文件夹创建成功!');
+	// let fs = require('fs');
+	// let path = require('path');
+	// fs.mkdirSync(path.join(Editor.Project.path, '文件'));
+	// Editor.success('文件夹创建成功!');
   },
 
   unload () {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels