wuwangdong 4 anni fa
parent
commit
b888ed3ff2

+ 28 - 69
assets/resources/module/cashPro/cashPro.prefab

@@ -27,11 +27,11 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 96
+        "__id__": 97
       }
     ],
     "_prefab": {
-      "__id__": 97
+      "__id__": 98
     },
     "_opacity": 255,
     "_color": {
@@ -1015,14 +1015,14 @@
         "__id__": 84
       }
     ],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
-        "__id__": 94
+        "__id__": 95
       }
     ],
     "_prefab": {
-      "__id__": 95
+      "__id__": 96
     },
     "_opacity": 255,
     "_color": {
@@ -1438,77 +1438,22 @@
     "sync": false
   },
   {
-    "__type__": "cc.Button",
+    "__type__": "cdc50kCRVVBa5gcp4XXxVO+",
     "_name": "",
     "_objFlags": 0,
     "node": {
       "__id__": 33
     },
     "_enabled": true,
-    "_normalMaterial": null,
-    "_grayMaterial": null,
-    "duration": 0.1,
-    "zoomScale": 0.8,
-    "clickEvents": [
+    "node_panel": {
+      "__id__": 1
+    },
+    "transition_type": 3,
+    "onComplete": [
       {
         "__id__": 38
       }
     ],
-    "_N$interactable": true,
-    "_N$enableAutoGrayEffect": false,
-    "_N$transition": 3,
-    "transition": 3,
-    "_N$normalColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_N$pressedColor": {
-      "__type__": "cc.Color",
-      "r": 211,
-      "g": 211,
-      "b": 211,
-      "a": 255
-    },
-    "pressedColor": {
-      "__type__": "cc.Color",
-      "r": 211,
-      "g": 211,
-      "b": 211,
-      "a": 255
-    },
-    "_N$hoverColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "hoverColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_N$disabledColor": {
-      "__type__": "cc.Color",
-      "r": 124,
-      "g": 124,
-      "b": 124,
-      "a": 255
-    },
-    "_N$normalSprite": null,
-    "_N$pressedSprite": null,
-    "pressedSprite": null,
-    "_N$hoverSprite": null,
-    "hoverSprite": null,
-    "_N$disabledSprite": null,
-    "_N$target": {
-      "__id__": 33
-    },
     "_id": ""
   },
   {
@@ -1518,7 +1463,7 @@
     },
     "component": "",
     "_componentId": "7c96b8wPgBPeLS+KI5YpgFP",
-    "handler": "clickClose",
+    "handler": "clickCloseBtn",
     "customEventData": ""
   },
   {
@@ -3105,7 +3050,7 @@
       }
     ],
     "_prefab": {
-      "__id__": 93
+      "__id__": 94
     },
     "_opacity": 255,
     "_color": {
@@ -3414,10 +3359,24 @@
       "__id__": 1
     },
     "transition_type": 3,
-    "onComplete": [],
+    "onComplete": [
+      {
+        "__id__": 93
+      }
+    ],
     "_id": ""
   },
   {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "7c96b8wPgBPeLS+KI5YpgFP",
+    "handler": "clickCloseBtn",
+    "customEventData": ""
+  },
+  {
     "__type__": "cc.PrefabInfo",
     "root": {
       "__id__": 1

+ 1 - 1
assets/resources/module/farmMap/farmMap.prefab

@@ -133,7 +133,7 @@
         0,
         1,
         1.25,
-        1.35,
+        1.25,
         1
       ]
     },

+ 6 - 6
assets/resources/module/newOpenRedBag/newOpenRedBag.prefab

@@ -519,7 +519,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 205,
+      "width": 345,
       "height": 100
     },
     "_anchorPoint": {
@@ -564,7 +564,7 @@
       "__id__": 12
     },
     "_children": [],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 14
@@ -583,8 +583,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 63,
-      "height": 63
+      "width": 100,
+      "height": 100
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -700,7 +700,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        0,
+        70,
         0,
         0,
         0,
@@ -778,7 +778,7 @@
     "_enabled": true,
     "_layoutSize": {
       "__type__": "cc.Size",
-      "width": 205,
+      "width": 345,
       "height": 100
     },
     "_resize": 1,

+ 3 - 3
assets/script/before/view/uiItem/PlantItem.ts

@@ -114,9 +114,9 @@ export default class PlantItem extends cc.Component {
             gData.gameData.nextMake = null;
             gData.gameData.setNextProduct(false);
 
-            if (gData.gameData.playerProp.gradeLevel < 2) {
-                mk.tip.pop('生产次数+1');
-            }
+            // if (gData.gameData.playerProp.gradeLevel < 2) {
+            //     mk.tip.pop('生产次数+1');
+            // }
         }
         else {
             gData.factorySystem.make(this.data.picture);

+ 10 - 2
assets/script/game/game/Game.ts

@@ -429,8 +429,16 @@ export default class Game extends cc.Component {
 
         let flyRed = await gData.gameData.makeProduct();
 
-        if (gData.gameData.playerProp.gradeLevel < 2) {
-            mk.tip.pop('生产次数+1');
+        // if (gData.gameData.playerProp.gradeLevel < 2) {
+        //     mk.tip.pop('生产次数+1');
+        // }
+
+        if (gData.gameData.playerProp.userFarmTaskInfo) {
+            let com = gData.gameData.playerProp.userFarmTaskInfo.completeCount;
+            let count = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
+
+            if (com >= count)
+                return;
         }
 
         if (flyRed) {

+ 5 - 0
assets/script/game/module/cashPro/CashPro.ts

@@ -64,4 +64,9 @@ export default class CashPro extends cc.Component {
         this.loadPart.active = false
         mk.ui.closePanel(this.node.name)
     }
+
+    clickCloseBtn()
+    {
+        gData.gameData.init_redBagTask = true;
+    }
 }

+ 1 - 1
assets/script/game/module/login/Login.ts

@@ -63,7 +63,7 @@ export default class Login extends cc.Component {
         }
 
         // mk.loader.preload('game/coregame/coregame', cc.Prefab);
-        this.coreGame = await mk.loader.load('game/coregame/coregame', cc.Prefab);
+        //this.coreGame = await mk.loader.load('game/coregame/coregame', cc.Prefab);
     }
 
     update() {

+ 2 - 2
assets/script/game/module/redBagTask/RedBagTask.ts

@@ -181,7 +181,7 @@ export default class RedBagTask extends cc.Component {
             if (gray && com < count) {
 
                 gray.setGray(true);
-                this.openBtn_ani.getComponent(cc.Button).interactable = false;
+                //this.openBtn_ani.getComponent(cc.Button).interactable = false;
             }
 
             this.isCanCash = com >= count;
@@ -276,7 +276,7 @@ export default class RedBagTask extends cc.Component {
         //this.showNewTaskUI();
         //this.isShowNewTask = true;
 
-        mk.ui.closePanel(this.node.name);
+        //mk.ui.closePanel(this.node.name);
         gData.cashPro.cashPro_money = response.data.cashMoney;
         gData.cashPro.init_success = true;
         // gData.receiptNotice.receip_rmb = response.data.cashMoney;

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


File diff suppressed because it is too large
+ 0 - 0
build/jsb-link/assets/resources/config.json


File diff suppressed because it is too large
+ 0 - 0
build/jsb-link/assets/resources/import/ce/ce87165a-e80b-46ed-b9df-d2690132ca17.json


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


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

@@ -25455,7 +25455,9 @@ e.node_rule = null;
 return e;
 }
 e.prototype.onLoad = function() {};
-e.prototype.start = function() {};
+e.prototype.start = function() {
+this.initData();
+};
 e.prototype.initData = function() {
 return r(this, void 0, void 0, function() {
 var t, e, o, n, a, i;

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

@@ -9,7 +9,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kxnlyTest/baseRemote/"
     ],
-    "buildTime": 1631667114329,
-    "genTime": 1631667114329,
+    "buildTime": 1631670612922,
+    "genTime": 1631670612922,
     "genVersion": null
 }

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