wuwangdong 4 лет назад
Родитель
Сommit
bfb18ed1c8
27 измененных файлов с 297 добавлено и 210 удалено
  1. 0 12
      assets/resources/animation/Main.meta
  2. 3 3
      assets/resources/game/prefab/game.prefab
  3. 2 2
      assets/resources/module/farmMap/farmItem.prefab
  4. 123 95
      assets/resources/module/newNotice/newNotice.prefab
  5. 1 0
      assets/script/game/data/GameData.ts
  6. 19 11
      assets/script/game/game/AniControl.ts
  7. 7 3
      assets/script/game/game/Farmer.ts
  8. 2 2
      assets/script/game/game/Game.ts
  9. 6 5
      assets/script/game/module/farmMap/FarmItem.ts
  10. 1 0
      assets/script/game/module/newCashUI/NewCashUI.ts
  11. 1 1
      assets/script/game/module/newCashUI/WalletCashOut.ts
  12. 1 1
      assets/script/game/module/newNotice/NewNotice.ts
  13. 9 1
      assets/script/game/module/newOpenRedBag/NewOpenRedBag.ts
  14. 7 1
      assets/script/game/module/redBagTask/RedBagTask.ts
  15. 7 1
      assets/script/game/module/reward/Reward.ts
  16. 8 2
      assets/script/game/module/speedUpUI/SpeedUpUI.ts
  17. 9 1
      assets/script/game/module/turntable/Turnablerule.ts
  18. 0 4
      assets/script/mk/system/FlySystem.ts
  19. 1 4
      assets/script/mk/system/FlySystem2.ts
  20. 37 0
      assets/script/mk/system/UISystem.ts
  21. BIN
      build/jsb-link/assets/main/index.jsc
  22. 0 0
      build/jsb-link/assets/resources/config.json
  23. 0 0
      build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json
  24. 0 0
      build/jsb-link/assets/resources/import/c9/c92ee1bb-0e83-4868-97e3-d71b8b58fae0.json
  25. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser
  26. 51 59
      build/jsb-link/js backups (useful for debugging)/main.index.js
  27. 2 2
      packages-hot-update/cfg.json

+ 0 - 12
assets/resources/animation/Main.meta

@@ -1,12 +0,0 @@
-{
-  "ver": "1.1.2",
-  "uuid": "8c65ee95-8d1e-4deb-8864-df1c7a01c9ee",
-  "isBundle": false,
-  "bundleName": "",
-  "priority": 1,
-  "compressionType": {},
-  "optimizeHotUpdate": {},
-  "inlineSpriteFrames": {},
-  "isRemoteBundle": {},
-  "subMetas": {}
-}

+ 3 - 3
assets/resources/game/prefab/game.prefab

@@ -4821,7 +4821,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "f7Yf9h1dRHZLz+lg7WWauy",
+    "fileId": "47RBWKGRhEJpl2IlOgxKv1",
     "sync": false
   },
   {
@@ -5033,7 +5033,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "399EqPMNNBU7h83hYJGVbf",
+    "fileId": "fbqXU5kI9EZ7tq9xkWrZ9G",
     "sync": false
   },
   {
@@ -5142,7 +5142,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "7avS8JYZJAzY57dqfCuapt",
+    "fileId": "78mas0QR5LeaC5lEoHGhVM",
     "sync": false
   },
   {

+ 2 - 2
assets/resources/module/farmMap/farmItem.prefab

@@ -658,7 +658,7 @@
         "__id__": 22
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 25
@@ -1722,7 +1722,7 @@
       "__id__": 1
     },
     "_children": [],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 47

+ 123 - 95
assets/resources/module/newNotice/newNotice.prefab

@@ -24,20 +24,20 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 63
+        "__id__": 65
       },
       {
-        "__id__": 64
+        "__id__": 66
       },
       {
-        "__id__": 65
+        "__id__": 67
       },
       {
-        "__id__": 66
+        "__id__": 68
       }
     ],
     "_prefab": {
-      "__id__": 67
+      "__id__": 69
     },
     "_opacity": 255,
     "_color": {
@@ -98,38 +98,38 @@
         "__id__": 3
       },
       {
-        "__id__": 7
+        "__id__": 8
       },
       {
-        "__id__": 16
+        "__id__": 17
       },
       {
-        "__id__": 19
+        "__id__": 20
       },
       {
-        "__id__": 28
+        "__id__": 29
       },
       {
-        "__id__": 34
+        "__id__": 35
       },
       {
-        "__id__": 40
+        "__id__": 41
       },
       {
-        "__id__": 46
+        "__id__": 47
       },
       {
-        "__id__": 52
+        "__id__": 53
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 61
+        "__id__": 63
       }
     ],
     "_prefab": {
-      "__id__": 62
+      "__id__": 64
     },
     "_opacity": 255,
     "_color": {
@@ -196,7 +196,7 @@
       }
     ],
     "_prefab": {
-      "__id__": 6
+      "__id__": 7
     },
     "_opacity": 255,
     "_color": {
@@ -289,10 +289,24 @@
       "__id__": 1
     },
     "transition_type": 0,
-    "onComplete": [],
+    "onComplete": [
+      {
+        "__id__": 6
+      }
+    ],
     "_id": ""
   },
   {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "0844bD2l/VN6IpaSUDaTsl4",
+    "handler": "clickCloseBtn",
+    "customEventData": ""
+  },
+  {
     "__type__": "cc.PrefabInfo",
     "root": {
       "__id__": 1
@@ -312,20 +326,20 @@
     },
     "_children": [
       {
-        "__id__": 8
+        "__id__": 9
       },
       {
-        "__id__": 11
+        "__id__": 12
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 14
+        "__id__": 15
       }
     ],
     "_prefab": {
-      "__id__": 15
+      "__id__": 16
     },
     "_opacity": 255,
     "_color": {
@@ -379,17 +393,17 @@
     "_name": "logo",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 7
+      "__id__": 8
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 9
+        "__id__": 10
       }
     ],
     "_prefab": {
-      "__id__": 10
+      "__id__": 11
     },
     "_opacity": 255,
     "_color": {
@@ -443,7 +457,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 8
+      "__id__": 9
     },
     "_enabled": true,
     "_materials": [
@@ -486,17 +500,17 @@
     "_name": "标题文本",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 7
+      "__id__": 8
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 12
+        "__id__": 13
       }
     ],
     "_prefab": {
-      "__id__": 13
+      "__id__": 14
     },
     "_opacity": 255,
     "_color": {
@@ -550,7 +564,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 11
+      "__id__": 12
     },
     "_enabled": true,
     "_materials": [
@@ -594,7 +608,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 7
+      "__id__": 8
     },
     "_enabled": true,
     "_materials": [
@@ -643,11 +657,11 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 17
+        "__id__": 18
       }
     ],
     "_prefab": {
-      "__id__": 18
+      "__id__": 19
     },
     "_opacity": 255,
     "_color": {
@@ -701,7 +715,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 16
+      "__id__": 17
     },
     "_enabled": true,
     "_materials": [
@@ -749,20 +763,20 @@
     },
     "_children": [
       {
-        "__id__": 20
+        "__id__": 21
       },
       {
-        "__id__": 23
+        "__id__": 24
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 26
+        "__id__": 27
       }
     ],
     "_prefab": {
-      "__id__": 27
+      "__id__": 28
     },
     "_opacity": 255,
     "_color": {
@@ -816,17 +830,17 @@
     "_name": "New Label",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 19
+      "__id__": 20
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 21
+        "__id__": 22
       }
     ],
     "_prefab": {
-      "__id__": 22
+      "__id__": 23
     },
     "_opacity": 255,
     "_color": {
@@ -880,7 +894,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 20
+      "__id__": 21
     },
     "_enabled": true,
     "_materials": [
@@ -924,17 +938,17 @@
     "_name": "提现金额",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 19
+      "__id__": 20
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 24
+        "__id__": 25
       }
     ],
     "_prefab": {
-      "__id__": 25
+      "__id__": 26
     },
     "_opacity": 255,
     "_color": {
@@ -988,7 +1002,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 23
+      "__id__": 24
     },
     "_enabled": true,
     "_materials": [
@@ -1032,7 +1046,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 19
+      "__id__": 20
     },
     "_enabled": true,
     "_layoutSize": {
@@ -1079,17 +1093,17 @@
     },
     "_children": [
       {
-        "__id__": 29
+        "__id__": 30
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 32
+        "__id__": 33
       }
     ],
     "_prefab": {
-      "__id__": 33
+      "__id__": 34
     },
     "_opacity": 255,
     "_color": {
@@ -1143,17 +1157,17 @@
     "_name": "描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 28
+      "__id__": 29
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 30
+        "__id__": 31
       }
     ],
     "_prefab": {
-      "__id__": 31
+      "__id__": 32
     },
     "_opacity": 255,
     "_color": {
@@ -1207,7 +1221,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 29
+      "__id__": 30
     },
     "_enabled": true,
     "_materials": [
@@ -1251,7 +1265,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 28
+      "__id__": 29
     },
     "_enabled": true,
     "_materials": [
@@ -1298,17 +1312,17 @@
     },
     "_children": [
       {
-        "__id__": 35
+        "__id__": 36
       }
     ],
     "_active": false,
     "_components": [
       {
-        "__id__": 38
+        "__id__": 39
       }
     ],
     "_prefab": {
-      "__id__": 39
+      "__id__": 40
     },
     "_opacity": 255,
     "_color": {
@@ -1362,17 +1376,17 @@
     "_name": "描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 34
+      "__id__": 35
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 36
+        "__id__": 37
       }
     ],
     "_prefab": {
-      "__id__": 37
+      "__id__": 38
     },
     "_opacity": 255,
     "_color": {
@@ -1426,7 +1440,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 35
+      "__id__": 36
     },
     "_enabled": true,
     "_materials": [
@@ -1470,7 +1484,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 34
+      "__id__": 35
     },
     "_enabled": true,
     "_materials": [
@@ -1518,17 +1532,17 @@
     },
     "_children": [
       {
-        "__id__": 41
+        "__id__": 42
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 44
+        "__id__": 45
       }
     ],
     "_prefab": {
-      "__id__": 45
+      "__id__": 46
     },
     "_opacity": 255,
     "_color": {
@@ -1582,17 +1596,17 @@
     "_name": "描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 40
+      "__id__": 41
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 42
+        "__id__": 43
       }
     ],
     "_prefab": {
-      "__id__": 43
+      "__id__": 44
     },
     "_opacity": 255,
     "_color": {
@@ -1646,7 +1660,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 41
+      "__id__": 42
     },
     "_enabled": true,
     "_materials": [
@@ -1690,7 +1704,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 40
+      "__id__": 41
     },
     "_enabled": true,
     "_materials": [
@@ -1738,17 +1752,17 @@
     },
     "_children": [
       {
-        "__id__": 47
+        "__id__": 48
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 50
+        "__id__": 51
       }
     ],
     "_prefab": {
-      "__id__": 51
+      "__id__": 52
     },
     "_opacity": 255,
     "_color": {
@@ -1802,17 +1816,17 @@
     "_name": "描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 46
+      "__id__": 47
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 48
+        "__id__": 49
       }
     ],
     "_prefab": {
-      "__id__": 49
+      "__id__": 50
     },
     "_opacity": 255,
     "_color": {
@@ -1866,7 +1880,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 47
+      "__id__": 48
     },
     "_enabled": true,
     "_materials": [
@@ -1910,7 +1924,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 46
+      "__id__": 47
     },
     "_enabled": true,
     "_materials": [
@@ -1958,23 +1972,23 @@
     },
     "_children": [
       {
-        "__id__": 53
+        "__id__": 54
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 57
-      },
-      {
         "__id__": 58
       },
       {
         "__id__": 59
+      },
+      {
+        "__id__": 60
       }
     ],
     "_prefab": {
-      "__id__": 60
+      "__id__": 62
     },
     "_opacity": 255,
     "_color": {
@@ -2028,20 +2042,20 @@
     "_name": "描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 52
+      "__id__": 53
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 54
+        "__id__": 55
       },
       {
-        "__id__": 55
+        "__id__": 56
       }
     ],
     "_prefab": {
-      "__id__": 56
+      "__id__": 57
     },
     "_opacity": 255,
     "_color": {
@@ -2095,7 +2109,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 53
+      "__id__": 54
     },
     "_enabled": true,
     "_materials": [
@@ -2130,7 +2144,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 53
+      "__id__": 54
     },
     "_enabled": true,
     "_color": {
@@ -2159,7 +2173,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 52
+      "__id__": 53
     },
     "_enabled": true,
     "_materials": [
@@ -2191,7 +2205,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 52
+      "__id__": 53
     },
     "_enabled": true,
     "_normalMaterial": null,
@@ -2259,17 +2273,31 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 52
+      "__id__": 53
     },
     "_enabled": true,
     "node_panel": {
       "__id__": 1
     },
     "transition_type": 3,
-    "onComplete": [],
+    "onComplete": [
+      {
+        "__id__": 61
+      }
+    ],
     "_id": ""
   },
   {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "0844bD2l/VN6IpaSUDaTsl4",
+    "handler": "clickCloseBtn",
+    "customEventData": ""
+  },
+  {
     "__type__": "cc.PrefabInfo",
     "root": {
       "__id__": 1
@@ -2398,10 +2426,10 @@
     },
     "_enabled": true,
     "lbl_reward_value": {
-      "__id__": 24
+      "__id__": 25
     },
     "lbl_time": {
-      "__id__": 48
+      "__id__": 49
     },
     "_id": ""
   },

+ 1 - 0
assets/script/game/data/GameData.ts

@@ -1115,6 +1115,7 @@ class PlayerProp {
         gData.gameData.init_coin = true;
         //gData.gameData.init_red_point = true;
         gData.gameData.init_wallet_redMoney = true;
+        mk.ui.invokeRefreshEventByName("refreshCoin");
     }
     get redMoney(): number {
         return this._redMoney;

+ 19 - 11
assets/script/game/game/AniControl.ts

@@ -266,37 +266,45 @@ export default class AniControl extends cc.Component {
 
         let add = response.data.redMoneyAddition;
         console.log('addCoin===============>', add);
-        if(add > 0)
-        {
+        if (add > 0) {
             const several = 3;
             let intV = Math.floor(add / several);
             let r = add % several;
-    
+
             mk.audio.playEffect('redmoney');
             if (type == 'bird_1') {
-                for (let i = 0; i != several; ++i) {
-                    mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, '', null, -1, intV);
+                if (intV > 0) {
+                    for (let i = 0; i != several; ++i) {
+                        mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, '', null, -1, intV);
+                    }
                 }
+
                 if (r > 0) {
                     mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, '', null, -1, r);
                 }
             } else if (type == 'bird_2') {
-                for (let i = 0; i != several; ++i) {
-                    mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, '', null, -1, intV);
+                if (intV > 0) {
+                    for (let i = 0; i != several; ++i) {
+                        mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, '', null, -1, intV);
+                    }
                 }
-    
+
                 if (r > 0) {
                     mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, '', null, -1, r);
                 }
             } else if (type == 'dog') {
-                for (let i = 0; i != several; ++i) {
-                    mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, '', null, -1, intV);
+                if(intV > 0)
+                {
+                    for (let i = 0; i != several; ++i) {
+                        mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, '', null, -1, intV);
+                    }
                 }
+                
                 if (r > 0) {
                     mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, '', null, -1, r);
                 }
             }
         }
-        
+
     }
 }

+ 7 - 3
assets/script/game/game/Farmer.ts

@@ -64,13 +64,17 @@ export class Farmer extends cc.Component {
         console.log('addCoinByFarmer===============>', add);
         if(add > 0)
         {
-            const several = 3;
+            const several = 2;
             let intV = Math.floor(add / several);
             let r = add % several;
             mk.audio.playEffect('redmoney');
-            for (let i = 0; i != several; ++i) {
-                mk.fly.PlayCoinAnim(1, 1, this.fly_node, '', null, -1, intV);
+            if(intV > 0)
+            {
+                for (let i = 0; i != several; ++i) {
+                    mk.fly.PlayCoinAnim(1, 1, this.fly_node, '', null, -1, intV);
+                }
             }
+            
             if (r > 0) {
                 mk.fly.PlayCoinAnim(1, 1, this.fly_node, '', null, -1, r);
             }

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

@@ -163,7 +163,7 @@ export default class Game extends cc.Component {
         }
     }
     lateUpdate() {
-        gData.gameData.init_head = false;
+        gData.gameData.init_head = false;     
     }
 
     private initMusic() {
@@ -205,7 +205,7 @@ export default class Game extends cc.Component {
         //this.lbl_redMoney.node.getComponent(mk.component.numberAnim).setValue(gData.gameData.playerProp.redMoney);
         cc.tween(this.lbl_redMoney.node).to(0.1, { scale: 1.2 }).to(0.05, { scale: 1 }).start();
         this.lbl_redMoney.string = gData.gameData.playerProp.redMoney/100 + "";
-        gData.gameData.init_coin = false;
+        gData.gameData.init_coin = false;    
     }
 
     private async initHead() {

+ 6 - 5
assets/script/game/module/farmMap/FarmItem.ts

@@ -47,11 +47,10 @@ export default class FarmItem extends cc.Component {
 
         let max = gData.farmMapData.maxUnluckValue;
         if (data.picture <= max) {
-            this.sp_icon.spriteFrame = await mk.loader.load(plantPath + data.picture, cc.SpriteFrame);
             this.lbl_nameDes.node.active = true;
             this.lbl_nameDes.string = `${data.name} ${data.time}秒成熟`;
             this.lbl_des.string = `最高收获${data.menuRedBagCoin/100}红包币`;
-
+            
             let state = gData.gameData.getFarmMapRewardState(this.getIndex());
             if (state == 1) {
                 this.node_getBtn.active = true;
@@ -64,27 +63,29 @@ export default class FarmItem extends cc.Component {
                 this.node_unluckBtn.active = false;
                 this.node_redPoint.active = true;
             }
+            this.sp_icon.spriteFrame = await mk.loader.load(plantPath + data.picture, cc.SpriteFrame);
 
         } else if (data.picture - 1 == max) {
-            this.sp_icon.spriteFrame = await mk.loader.load('module/farmMap/texture/gift', cc.SpriteFrame);
             let times = gData.gameData.getProductMakeTimesById(data.picture - 1);
             let plantName = gData.gameData.getProductMap(data.picture - 1).name;
             let des = this.getDesByType();
             this.lbl_des.string = `${des}${this.data.value}次${plantName}后解锁\n(${times}/${data.value})`;;
-
+            
             this.node_getBtn.active = false;
             this.node_ungetBtn.active = false;
             this.node_unluckBtn.active = true;
             this.lbl_nameDes.node.active = false;
             this.node_redPoint.active = false;
-        } else {
             this.sp_icon.spriteFrame = await mk.loader.load('module/farmMap/texture/gift', cc.SpriteFrame);
+        } else {   
             this.lbl_des.string = "神秘物种,等待发现";
+            
             this.node_getBtn.active = false;
             this.node_ungetBtn.active = false;
             this.node_unluckBtn.active = true;
             this.lbl_nameDes.node.active = false;
             this.node_redPoint.active = false;
+            this.sp_icon.spriteFrame = await mk.loader.load('module/farmMap/texture/gift', cc.SpriteFrame);
         }
 
     }

+ 1 - 0
assets/script/game/module/newCashUI/NewCashUI.ts

@@ -1,3 +1,4 @@
+import { Data } from "../../../mk/data/Data";
 import JsbSystem from "../../../mk/system/JsbSystem";
 
 const { ccclass, property } = cc._decorator;

+ 1 - 1
assets/script/game/module/newCashUI/WalletCashOut.ts

@@ -126,7 +126,7 @@ export default class WalletCashOut extends cc.Component {
     private initTip() {
 
         this.lbl_redMoney.string = (gData.gameData.playerProp.redMoney/100).toString();
-        this.lbl_value.string = (gData.gameData.playerProp.redMoney / 1000000) + '元';
+        this.lbl_value.string = (gData.gameData.playerProp.redMoney / 1000000).toFixed(3) + '元';
 
         if (this.curChooseIndex != -1) {
             let data = gData.gameData.configs.CashCfg[this.curChooseIndex];

+ 1 - 1
assets/script/game/module/newNotice/NewNotice.ts

@@ -30,7 +30,7 @@ export default class NewNotice extends cc.Component {
     }
 
     private clickCloseBtn() {
-        mk.audio.playEffect("closeButton");
+        //mk.audio.playEffect("closeButton");
         gData.gameData.init_redBagTask = true;
     }
 }

+ 9 - 1
assets/script/game/module/newOpenRedBag/NewOpenRedBag.ts

@@ -37,7 +37,10 @@ export default class NewOpenRedBag extends cc.Component {
         this.showChangePart();
 
         this.initCashOutStyle(gData.gameData.playerProp.redMoney);
+        
+        mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
     }
+    
 
     showElectUI() {
         this.sendRecommendList();
@@ -71,6 +74,7 @@ export default class NewOpenRedBag extends cc.Component {
     }
 
     onDisable() {
+        mk.ui.removeRefreshEvent(this.node);
         mk.ad.destoryBanner();
     }
 
@@ -78,13 +82,17 @@ export default class NewOpenRedBag extends cc.Component {
      * 底部提现相关样式
      */
     private initCashOutStyle(redMoney: number = 0) {
+        if(redMoney == 0)
+        {
+            redMoney = gData.gameData.playerProp.redMoney;
+        }
         redMoney = redMoney/100;
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_reward_value.string = cash_data.money / 100 + '元';
-        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney;
+        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney/100;
         const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / cash_data.redMoney;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();

+ 7 - 1
assets/script/game/module/redBagTask/RedBagTask.ts

@@ -69,6 +69,7 @@ export default class RedBagTask extends cc.Component {
 
 
         this.initCashOutStyle(gData.gameData.playerProp.redMoney);
+        mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
 
     }
 
@@ -88,6 +89,7 @@ export default class RedBagTask extends cc.Component {
     }
 
     onDisable() {
+        mk.ui.removeRefreshEvent(this.node);
         mk.ad.destoryBanner();
         mk.guide.open(3);
     }
@@ -204,13 +206,17 @@ export default class RedBagTask extends cc.Component {
      * 底部提现相关样式
      */
     private initCashOutStyle(redMoney: number = 0) {
+        if(redMoney == 0)
+        {
+            redMoney = gData.gameData.playerProp.redMoney;
+        }
         redMoney = redMoney/100;
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_reward_value.string = cash_data.money / 100 + '元';
-        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney;
+        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney/100;
         const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / cash_data.redMoney;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();

+ 7 - 1
assets/script/game/module/reward/Reward.ts

@@ -50,6 +50,7 @@ export default class Reward extends cc.Component {
     start() {
         // gData.gameData.playerProp.redMoney = 1500;// 测试数据
         this.initCashOutStyle(gData.gameData.playerProp.redMoney);
+        mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
     }
 
     onEnable() {
@@ -59,6 +60,7 @@ export default class Reward extends cc.Component {
     }
 
     onDisable() {
+        mk.ui.removeRefreshEvent(this.node);
         mk.ad.destoryBanner();
     }
 
@@ -82,13 +84,17 @@ export default class Reward extends cc.Component {
      * 底部提现相关样式
      */
     private initCashOutStyle(redMoney: number = 0) {
+        if(redMoney == 0)
+        {
+            redMoney = gData.gameData.playerProp.redMoney;
+        }
         redMoney = redMoney/100;
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_cash.string = cash_data.money / 100 + '元';
-        this.lbl_cash_out.string = newRedMoney + '/' + cash_data.redMoney;
+        this.lbl_cash_out.string = newRedMoney + '/' + cash_data.redMoney/100;
         const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / cash_data.redMoney;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();

+ 8 - 2
assets/script/game/module/speedUpUI/SpeedUpUI.ts

@@ -21,6 +21,8 @@ export default class SpeedUpUI extends cc.Component {
     start() {
         this.initCashOutStyle(gData.gameData.playerProp.redMoney);
         this.lbl_remainTimes.string = `今日剩余次数:${gData.gameData.playerProp.speedUpLeftTimes}`;
+
+        mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
     }
 
     onEnable() {
@@ -28,6 +30,7 @@ export default class SpeedUpUI extends cc.Component {
     }
 
     onDisable() {
+        mk.ui.removeRefreshEvent(this.node);
         mk.ad.destoryBanner();
     }
 
@@ -46,13 +49,17 @@ export default class SpeedUpUI extends cc.Component {
      * 底部提现相关样式
      */
     private initCashOutStyle(redMoney: number = 0) {
+        if(redMoney == 0)
+        {
+            redMoney = gData.gameData.playerProp.redMoney;
+        }
         redMoney = redMoney / 100;
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_reward_value.string = cash_data.money / 100 + '元';
-        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney;
+        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney/100;
         const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / cash_data.redMoney;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();
@@ -103,7 +110,6 @@ export default class SpeedUpUI extends cc.Component {
         }
     }
 
-
     private clickCloseBtn() {
         mk.audio.playEffect("closeButton");
     }

+ 9 - 1
assets/script/game/module/turntable/Turnablerule.ts

@@ -25,6 +25,7 @@ export default class Turnablerule extends cc.Component {
         mk.ad.showBanner(BannerAdType.banner_click_9);
 
         this.initCashOutStyle(gData.gameData.playerProp.redMoney);
+        mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
     }
 
     update(dt) {
@@ -38,13 +39,17 @@ export default class Turnablerule extends cc.Component {
      * 底部提现相关样式
      */
     private initCashOutStyle(redMoney: number = 0) {
+        if(redMoney == 0)
+        {
+            redMoney = gData.gameData.playerProp.redMoney;
+        }
         redMoney = redMoney/100;
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_reward_value.string = cash_data.money / 100 + '元';
-        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney;
+        this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney/100;
         const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / cash_data.redMoney;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();
@@ -66,6 +71,9 @@ export default class Turnablerule extends cc.Component {
         // mk.ui.openPanel(path);
     }
 
+    onDisable(){
+        mk.ui.removeRefreshEvent(this.node);
+    }
     private onClickClose() {
         mk.audio.playEffect("closeButton");
         mk.ad.destoryBanner();

+ 0 - 4
assets/script/mk/system/FlySystem.ts

@@ -68,7 +68,6 @@ export default class FlySystem extends cc.Component {
             .to(dur, { scale: 0.8 })
             .start();
 
-        console.log('---');
         let end_pos: cc.Vec2 = null;
         let end_node: cc.Node = null;
         if (typeof end === 'string') {
@@ -88,7 +87,6 @@ export default class FlySystem extends cc.Component {
             }
 
             end_node = cc.find(end as string);
-            mk.console.logSingle('end  ', end);
             let world_pos = end_node.parent.convertToWorldSpaceAR(end_node.getPosition());
             end_pos = this.node.convertToNodeSpaceAR(world_pos);
         }
@@ -99,8 +97,6 @@ export default class FlySystem extends cc.Component {
         cc.tween(target)
             .to(dur, { position: cc.v3(end_pos) }, cc.easeSineOut())
             .call(() => {
-                console.log('end_pos  ', target.position)
-
                 // if (end_node) {
                 //     cc.tween(end_node).to(0.1, { scale: 1.2 }).to(0.05, { scale: 1 }).start();
                 // }

+ 1 - 4
assets/script/mk/system/FlySystem2.ts

@@ -66,7 +66,6 @@ export default class FlySystem2 extends cc.Component {
             .to(dur, { scale: 0.8 })
             .start();
 
-            console.log('---');
         let end_pos: cc.Vec2 = null;
         let end_node: cc.Node = null;
         if (typeof end === 'string') {
@@ -95,9 +94,7 @@ export default class FlySystem2 extends cc.Component {
 
         cc.tween(target)
             .to(dur, { position: cc.v3(end_pos) }, cc.easeSineOut())
-            .call(() => {
-                console.log('end_pos  ', target.position)
-                
+            .call(() => {  
                 // if (end_node) {
                 //     cc.tween(end_node).to(0.1, { scale: 1.2 }).to(0.05, { scale: 1 }).start();
                 // }

+ 37 - 0
assets/script/mk/system/UISystem.ts

@@ -18,8 +18,11 @@ export default class UISystem extends cc.Component {
     /** 上一个打开的界面名称 */
     private lastOpenPanelName: string = "";
 
+    private registerCallBack: Map<cc.Node, Map<string, Function>> = new Map<cc.Node, Map<string,Function>>();
+        
     onLoad() {
         mk.ui = this;
+        this.registerCallBack.clear();
     }
 
     start() {
@@ -164,6 +167,40 @@ export default class UISystem extends cc.Component {
         mk.ad.destroyNativeAd()
         mk.ad.destoryBanner()
     }
+
+    registerRefreshEvent(obj: cc.Node, callBack: Function = null, name: string = "default")
+    {
+        let value = this.registerCallBack.get(obj);
+        if(value)
+        {
+            value.set(name, callBack);
+        }else{
+            let m = new Map<string, Function>();
+            m.set(name, callBack);
+            this.registerCallBack.set(obj, m);
+        }
+    }
+
+    invokeRefreshEventByName(name: string)
+    {
+        this.registerCallBack.forEach((value, key)=>{
+            value.forEach((callBack, k)=>{
+                if(k == name)
+                {
+                    callBack && callBack();
+                }          
+            })
+        });
+    }
+
+    removeRefreshEvent(obj:cc.Node)
+    {
+        let value = this.registerCallBack.get(obj);
+        if(value)
+        {
+            this.registerCallBack.delete(obj);
+        }
+    }
 }
 
 /** 界面打开操作 */

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


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/config.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/c9/c92ee1bb-0e83-4868-97e3-d71b8b58fae0.json


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


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

@@ -3157,13 +3157,13 @@ a = Math.floor(n / 3);
 i = n % 3;
 mk.audio.playEffect("redmoney");
 if ("bird_1" == t) {
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
 i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, i);
 } else if ("bird_2" == t) {
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
 i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, i);
 } else if ("dog" == t) {
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
 i > 0 && mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, i);
 }
 }
@@ -9339,11 +9339,6 @@ e = "";
 e = gData.farmMapData.chooseType == l.ProductType.nzw ? "game/coregame/texture/plant_icons/plantIcon_" : "game/coregame/texture/factory_icons/factory_";
 o = gData.farmMapData.maxUnluckValue;
 if (!(t.picture <= o)) return [ 3, 2 ];
-n = this.sp_icon;
-return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
-
-case 1:
-n.spriteFrame = c.sent();
 this.lbl_nameDes.node.active = !0;
 this.lbl_nameDes.string = t.name + " " + t.time + "秒成熟";
 this.lbl_des.string = "最高收获" + t.menuRedBagCoin / 100 + "红包币";
@@ -9358,38 +9353,43 @@ this.node_ungetBtn.active = !0;
 this.node_unluckBtn.active = !1;
 this.node_redPoint.active = !0;
 }
+n = this.sp_icon;
+return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
+
+case 1:
+n.spriteFrame = c.sent();
 return [ 3, 6 ];
 
 case 2:
 if (t.picture - 1 != o) return [ 3, 4 ];
-a = this.sp_icon;
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
-
-case 3:
-a.spriteFrame = c.sent();
-i = gData.gameData.getProductMakeTimesById(t.picture - 1);
-r = gData.gameData.getProductMap(t.picture - 1).name;
-s = this.getDesByType();
-this.lbl_des.string = "" + s + this.data.value + "次" + r + "后解锁\n(" + i + "/" + t.value + ")";
+a = gData.gameData.getProductMakeTimesById(t.picture - 1);
+i = gData.gameData.getProductMap(t.picture - 1).name;
+r = this.getDesByType();
+this.lbl_des.string = "" + r + this.data.value + "次" + i + "后解锁\n(" + a + "/" + t.value + ")";
 this.node_getBtn.active = !1;
 this.node_ungetBtn.active = !1;
 this.node_unluckBtn.active = !0;
 this.lbl_nameDes.node.active = !1;
 this.node_redPoint.active = !1;
+s = this.sp_icon;
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
+
+case 3:
+s.spriteFrame = c.sent();
 return [ 3, 6 ];
 
 case 4:
-p = this.sp_icon;
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
-
-case 5:
-p.spriteFrame = c.sent();
 this.lbl_des.string = "神秘物种,等待发现";
 this.node_getBtn.active = !1;
 this.node_ungetBtn.active = !1;
 this.node_unluckBtn.active = !0;
 this.lbl_nameDes.node.active = !1;
 this.node_redPoint.active = !1;
+p = this.sp_icon;
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
+
+case 5:
+p.spriteFrame = c.sent();
 c.label = 6;
 
 case 6:
@@ -10063,7 +10063,7 @@ if (o > 0) {
 n = Math.floor(o / 3);
 a = o % 3;
 mk.audio.playEffect("redmoney");
-for (i = 0; 3 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
+if (n > 0) for (i = 0; 3 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
 a > 0 && mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, a);
 }
 return [ 2 ];
@@ -11368,66 +11368,48 @@ e.btn4 = null;
 e.btn5 = null;
 e.btn6 = null;
 e.btn7 = null;
-e.btn8 = null;
-e.btn_redeem = null;
 return e;
 }
 e.prototype.onLoad = function() {
 gData.gameData.funBtns = this;
 };
-e.prototype.start = function() {};
+e.prototype.start = function() {
+this.init();
+};
 e.prototype.init = function() {
 for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
 var o = this["btn" + (e + 1)];
 o && (o.active = "1" == t[e]);
 }
-this.updateRedeem();
-};
-e.prototype.updateRedeem = function() {
-this.btn_redeem.active = gData.redeem.showBtn;
-};
-e.prototype.update = function() {
-if (gData.redeem.init_btnChange) {
-this.updateRedeem();
-gData.redeem.init_btnChange = !1;
-}
 };
 i([ s({
 type: cc.Node,
-displayName: "互推"
+displayName: "农场等级奖励"
 }) ], e.prototype, "btn1", void 0);
 i([ s({
 type: cc.Node,
-displayName: "转盘"
+displayName: "提现"
 }) ], e.prototype, "btn2", void 0);
 i([ s({
 type: cc.Node,
-displayName: "裂变"
+displayName: "签到"
 }) ], e.prototype, "btn3", void 0);
 i([ s({
 type: cc.Node,
-displayName: "存钱罐"
+displayName: "抽奖"
 }) ], e.prototype, "btn4", void 0);
 i([ s({
 type: cc.Node,
-displayName: "福袋"
+displayName: "任务红包"
 }) ], e.prototype, "btn5", void 0);
 i([ s({
 type: cc.Node,
-displayName: "签到"
+displayName: "福利"
 }) ], e.prototype, "btn6", void 0);
 i([ s({
 type: cc.Node,
-displayName: "常规提现"
+displayName: "邀请"
 }) ], e.prototype, "btn7", void 0);
-i([ s({
-type: cc.Node,
-displayName: "气泡红包组"
-}) ], e.prototype, "btn8", void 0);
-i([ s({
-type: cc.Node,
-displayName: "福利礼包"
-}) ], e.prototype, "btn_redeem", void 0);
 return i([ c ], e);
 }(cc.Component);
 o.default = l;
@@ -11828,6 +11810,7 @@ this.init_task = !1;
 this.init_expLevel = !1;
 this.init_redBagTask = !1;
 this.init_productTask = !1;
+this.init_speedup = !1;
 this._farmMapRewardData = [];
 this._farmData = [];
 this._farmDataMap = new Map();
@@ -13123,6 +13106,7 @@ gData.gameData.init_leftTimes = !0;
 };
 e.prototype.lateUpdate = function() {
 gData.gameData.init_head = !1;
+gData.gameData.init_coin = !1;
 };
 e.prototype.initMusic = function() {
 mk.audio.playMusic("bgm");
@@ -13149,7 +13133,6 @@ scale: 1.2
 scale: 1
 }).start();
 this.lbl_redMoney.string = gData.gameData.playerProp.redMoney / 100 + "";
-gData.gameData.init_coin = !1;
 };
 e.prototype.initHead = function() {
 return r(this, void 0, void 0, function() {
@@ -14405,6 +14388,7 @@ value: !0
 var n = t("../../game/data/GameData"), a = t("./UISystem"), i = function() {
 function t() {}
 t.prototype.open = function(t) {
+if ("0" != gData.gameData.configs.ServerConfig.NewUserGuide) {
 this.crtGuideID = gData.gameData.getProp(n.GameProp.guideID);
 null == this.crtGuideID && (this.crtGuideID = 0);
 if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else if (t <= this.crtGuideID && this.crtGuideID > 0) mk.console.log("当前引导已做过:" + t); else {
@@ -14413,6 +14397,7 @@ this.crtGuideID = t;
 mk.ui.openPanel("module/guide/guide", a.OpenActionType.normal, this.ui);
 this.setGuideID(this.crtGuideID++);
 }
+}
 };
 t.prototype.setGuideID = function(t) {
 if (5 == t) {
@@ -19706,6 +19691,7 @@ e.prototype.sendRecommendList = function() {
 return r(this, void 0, void 0, function() {
 var t = this;
 return c(this, function() {
+if (this.sp_icon) {
 this.sp_icon.node.active = !0;
 this.data = gData.moreGame.getRandomNormal();
 this.data && cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(e, o) {
@@ -19714,6 +19700,7 @@ var n = o;
 t.sp_icon.spriteFrame = new cc.SpriteFrame(n);
 }
 });
+}
 this.node_openBtn.active = !1;
 this.node_getBtn.active = !0;
 return [ 2 ];
@@ -19734,7 +19721,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
 if (o) {
 var n = t > o.redMoney ? o.redMoney : t;
 this.lbl_reward_value.string = o.money / 100 + "元";
-this.lbl_progress.string = n + "/" + o.redMoney;
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
 var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
 cc.tween(this.spr_cash_out).to(a, {
 fillRange: a
@@ -23496,7 +23483,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
 if (o) {
 var n = t > o.redMoney ? o.redMoney : t;
 this.lbl_reward_value.string = o.money / 100 + "元";
-this.lbl_progress.string = n + "/" + o.redMoney;
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
 var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
 cc.tween(this.spr_cash_out).to(a, {
 fillRange: a
@@ -24594,7 +24581,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
 if (o) {
 var n = t > o.redMoney ? o.redMoney : t;
 this.lbl_cash.string = o.money / 100 + "元";
-this.lbl_cash_out.string = n + "/" + o.redMoney;
+this.lbl_cash_out.string = n + "/" + o.redMoney / 100;
 var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
 cc.tween(this.spr_cash_out).to(a, {
 fillRange: a
@@ -26380,6 +26367,11 @@ mk.ad.destoryBanner();
 };
 e.prototype.update = function() {
 gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
+gData.gameData.init_coin && this.initCashOutStyle(gData.gameData.playerProp.redMoney);
+if (gData.gameData.init_speedup) {
+gData.gameData.init_speedup = !1;
+this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
+}
 };
 e.prototype.initCashOutStyle = function(t) {
 void 0 === t && (t = 0);
@@ -26388,7 +26380,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
 if (o) {
 var n = t > o.redMoney ? o.redMoney : t;
 this.lbl_reward_value.string = o.money / 100 + "元";
-this.lbl_progress.string = n + "/" + o.redMoney;
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
 var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
 cc.tween(this.spr_cash_out).to(a, {
 fillRange: a
@@ -26418,9 +26410,9 @@ gData.adData.watchVideo(null);
 return [ 4, mk.http.sendData("farmSpeedUp", {}) ];
 
 case 1:
-if ((t = o.sent()) && 0 == t.errcore) {
+if ((t = o.sent()) && 0 == t.errcode) {
 gData.gameData.playerProp.speedUpLeftTimes = t.data.speedUpLeftTimes;
-this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
+gData.gameData.init_speedup = !0;
 }
 gData.gameData.setHarvest();
 mk.tip.pop("加速成功!");
@@ -28614,7 +28606,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
 if (o) {
 var n = t > o.redMoney ? o.redMoney : t;
 this.lbl_reward_value.string = o.money / 100 + "元";
-this.lbl_progress.string = n + "/" + o.redMoney;
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
 var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
 cc.tween(this.spr_cash_out).to(a, {
 fillRange: a

+ 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": 1631353300750,
-    "genTime": 1631353300750,
+    "buildTime": 1631498742210,
+    "genTime": 1631498742210,
     "genVersion": null
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов