薛鸿潇 5 лет назад
Родитель
Сommit
384eea5bd8

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

@@ -3662,7 +3662,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 750,
-      "height": 280
+      "height": 222
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -3674,7 +3674,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        53,
+        18,
         0,
         0,
         0,
@@ -3714,10 +3714,10 @@
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_spriteFrame": {
-      "__uuid__": "74dc7948-2570-4026-85cd-ba99392158fe"
+      "__uuid__": "558441c9-ed5b-43e8-a72e-603343a2cc07"
     },
     "_type": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
@@ -3737,13 +3737,13 @@
     "node": {
       "__id__": 109
     },
-    "_enabled": true,
+    "_enabled": false,
     "alignMode": 1,
     "_target": null,
     "_alignFlags": 41,
     "_left": 0,
     "_right": 0,
-    "_top": -183,
+    "_top": -90,
     "_bottom": 1237,
     "_verticalCenter": 0,
     "_horizontalCenter": 0,
@@ -3795,8 +3795,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 149,
-      "height": 149
+      "width": 141,
+      "height": 141
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -3973,8 +3973,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 118,
-      "height": 118
+      "width": 117,
+      "height": 117
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4029,7 +4029,7 @@
       "__uuid__": "66810a82-f3a8-4023-90b7-c83a87a2e4a1"
     },
     "_type": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
@@ -4204,8 +4204,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 217,
-      "height": 58
+      "width": 185,
+      "height": 52
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4260,7 +4260,7 @@
       "__uuid__": "146c87a4-54bc-43db-8e7a-c1e92835c69c"
     },
     "_type": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
@@ -4734,8 +4734,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 217,
-      "height": 58
+      "width": 185,
+      "height": 52
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4790,7 +4790,7 @@
       "__uuid__": "146c87a4-54bc-43db-8e7a-c1e92835c69c"
     },
     "_type": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",

BIN
assets/resources/game/texture/main/bg.png


+ 3 - 3
assets/resources/game/texture/main/bg.png.meta

@@ -8,7 +8,7 @@
   "genMipmaps": false,
   "packable": true,
   "width": 750,
-  "height": 1700,
+  "height": 2300,
   "platformSettings": {},
   "subMetas": {
     "bg": {
@@ -23,9 +23,9 @@
       "trimX": 0,
       "trimY": 0,
       "width": 750,
-      "height": 1700,
+      "height": 2300,
       "rawWidth": 750,
-      "rawHeight": 1700,
+      "rawHeight": 2300,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

BIN
assets/resources/game/texture/main/head.png


+ 6 - 6
assets/resources/game/texture/main/head.png.meta

@@ -7,8 +7,8 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 149,
-  "height": 149,
+  "width": 141,
+  "height": 141,
   "platformSettings": {},
   "subMetas": {
     "head": {
@@ -22,10 +22,10 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 149,
-      "height": 149,
-      "rawWidth": 149,
-      "rawHeight": 149,
+      "width": 141,
+      "height": 141,
+      "rawWidth": 141,
+      "rawHeight": 141,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

BIN
assets/resources/game/texture/main/head1.png


+ 6 - 6
assets/resources/game/texture/main/head1.png.meta

@@ -7,8 +7,8 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 106,
-  "height": 106,
+  "width": 117,
+  "height": 117,
   "platformSettings": {},
   "subMetas": {
     "head1": {
@@ -22,10 +22,10 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 106,
-      "height": 106,
-      "rawWidth": 106,
-      "rawHeight": 106,
+      "width": 117,
+      "height": 117,
+      "rawWidth": 117,
+      "rawHeight": 117,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

BIN
assets/resources/game/texture/main/icon_hb.png


+ 6 - 6
assets/resources/game/texture/main/icon_hb.png.meta

@@ -7,8 +7,8 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 56,
-  "height": 74,
+  "width": 54,
+  "height": 70,
   "platformSettings": {},
   "subMetas": {
     "icon_hb": {
@@ -22,10 +22,10 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 56,
-      "height": 74,
-      "rawWidth": 56,
-      "rawHeight": 74,
+      "width": 54,
+      "height": 70,
+      "rawWidth": 54,
+      "rawHeight": 70,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

BIN
assets/resources/game/texture/main/tixian_bg.png


+ 4 - 4
assets/resources/game/texture/main/tixian_bg.png.meta

@@ -22,10 +22,10 @@
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 217,
-      "height": 60,
-      "rawWidth": 217,
-      "rawHeight": 60,
+      "width": 185,
+      "height": 52,
+      "rawWidth": 185,
+      "rawHeight": 52,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

+ 3 - 3
assets/resources/module/reward/reward.prefab

@@ -721,7 +721,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        -29.271,
+        -30,
         -17.804,
         0,
         0,
@@ -829,7 +829,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -18.174,
+        -18,
         0,
         0,
         0,
@@ -939,7 +939,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -17.942,
+        -18,
         0,
         0,
         0,

+ 166 - 16
assets/resources/module/reward/rewardLuck.prefab

@@ -19,25 +19,28 @@
     "_children": [
       {
         "__id__": 2
+      },
+      {
+        "__id__": 116
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 116
+        "__id__": 121
       },
       {
-        "__id__": 117
+        "__id__": 122
       },
       {
-        "__id__": 118
+        "__id__": 123
       },
       {
-        "__id__": 119
+        "__id__": 124
       }
     ],
     "_prefab": {
-      "__id__": 120
+      "__id__": 125
     },
     "_opacity": 255,
     "_color": {
@@ -49,8 +52,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
+      "width": 681.8181818181818,
+      "height": 1212.7272727272725
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -68,8 +71,8 @@
         0,
         0,
         1,
-        1,
-        1,
+        1.1,
+        1.1,
         0
       ]
     },
@@ -123,8 +126,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 750,
-      "height": 1334
+      "width": 681.8181818181818,
+      "height": 1212.7272727272725
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -721,8 +724,8 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        -29.271,
-        -17.804,
+        -30,
+        -18,
         0,
         0,
         0,
@@ -829,7 +832,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -18.174,
+        -18,
         0,
         0,
         0,
@@ -939,7 +942,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -17.942,
+        -18,
         0,
         0,
         0,
@@ -4177,6 +4180,153 @@
     "sync": false
   },
   {
+    "__type__": "cc.Node",
+    "_name": "btn_close",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 117
+      },
+      {
+        "__id__": 118
+      },
+      {
+        "__id__": 119
+      }
+    ],
+    "_prefab": {
+      "__id__": 120
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 88,
+      "height": 88
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        272.441,
+        491.749,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 116
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "6e00eea0-2e49-4c98-b664-a63c8660f4bb"
+    },
+    "_type": 0,
+    "_sizeMode": 1,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cdc50kCRVVBa5gcp4XXxVO+",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 116
+    },
+    "_enabled": true,
+    "node_panel": {
+      "__id__": 1
+    },
+    "transition_type": 3,
+    "onComplete": [],
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Animation",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 116
+    },
+    "_enabled": true,
+    "_defaultClip": {
+      "__uuid__": "ad45b0ef-9064-4616-b541-b8d386b87f3a"
+    },
+    "_clips": [
+      {
+        "__uuid__": "ad45b0ef-9064-4616-b541-b8d386b87f3a"
+      }
+    ],
+    "playOnLoad": true,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "eb3877a0-0566-4cd8-bb4e-fe5969e6f0e2"
+    },
+    "fileId": "721k4zYfBHKpZUi6Pjen1t",
+    "sync": false
+  },
+  {
     "__type__": "cc.Widget",
     "_name": "",
     "_objFlags": 0,
@@ -4259,7 +4409,7 @@
     "design_block_node": {
       "__id__": 68
     },
-    "bClickClose": true,
+    "bClickClose": false,
     "_id": ""
   },
   {

+ 4 - 4
assets/resources/module/reward/rewardMission.prefab

@@ -721,8 +721,8 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        -29.271,
-        -17.804,
+        -30,
+        -18,
         0,
         0,
         0,
@@ -829,7 +829,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -18.174,
+        -18,
         0,
         0,
         0,
@@ -939,7 +939,7 @@
       "ctor": "Float64Array",
       "array": [
         -30,
-        -17.942,
+        -18,
         0,
         0,
         0,

+ 4 - 4
assets/script/game/module/reward/Reward.ts

@@ -112,14 +112,14 @@ export default class Reward extends cc.Component {
         const cash_bar = gData.redBagCash.cash_bar;
         let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
         if (!cash_data) return;
-
+        const newRedMoney = redMoney > cash_data.type_value ? cash_data.type_value : redMoney;
         this.lbl_cash.string = cash_data.money / 100 + '元';
-        this.lbl_cash_out.string = redMoney + '/' + cash_data.type_value;
-        const fillRange = redMoney / cash_data.type_value >= 1 ? 1 : redMoney / cash_data.type_value;
+        this.lbl_cash_out.string = newRedMoney + '/' + cash_data.type_value;
+        const fillRange = newRedMoney / cash_data.type_value >= 1 ? 1 : newRedMoney / cash_data.type_value;
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();
     }
-    
+
     /**
      * 看广告
      */