Quellcode durchsuchen

钻石换金币

bing vor 2 Jahren
Ursprung
Commit
2e74675adf
48 geänderte Dateien mit 3250 neuen und 358 gelöschten Zeilen
  1. 11 11
      assets/pay/prefab/item.prefab
  2. 2 2
      assets/pay/prefab/pay.prefab
  3. 1711 0
      assets/pay/prefab/paycustom.prefab
  4. 13 0
      assets/pay/prefab/paycustom.prefab.meta
  5. 23 7
      assets/pay/script/ItemPay.ts
  6. 56 37
      assets/pay/script/Pay.ts
  7. 61 0
      assets/pay/script/PayCustom.ts
  8. 9 0
      assets/pay/script/PayCustom.ts.meta
  9. BIN
      assets/pay/texture/10.png
  10. 134 0
      assets/pay/texture/10.png.meta
  11. BIN
      assets/pay/texture/11.png
  12. 134 0
      assets/pay/texture/11.png.meta
  13. BIN
      assets/pay/texture/12.png
  14. 134 0
      assets/pay/texture/12.png.meta
  15. BIN
      assets/pay/texture/13.png
  16. 134 0
      assets/pay/texture/13.png.meta
  17. BIN
      assets/pay/texture/14.png
  18. 134 0
      assets/pay/texture/14.png.meta
  19. BIN
      assets/pay/texture/15.png
  20. 134 0
      assets/pay/texture/15.png.meta
  21. BIN
      assets/pay/texture/20.png
  22. BIN
      assets/pay/texture/21.png
  23. BIN
      assets/pay/texture/22.png
  24. BIN
      assets/pay/texture/23.png
  25. BIN
      assets/pay/texture/24.png
  26. BIN
      assets/pay/texture/25.png
  27. 0 134
      assets/pay/texture/25.png.meta
  28. BIN
      assets/pay/texture/bg3.png
  29. 28 28
      assets/pay/texture/bg3.png.meta
  30. BIN
      assets/pay/texture/btn_close.png
  31. 28 28
      assets/pay/texture/btn_close.png.meta
  32. BIN
      assets/pay/texture/desc11.png
  33. 134 0
      assets/pay/texture/desc11.png.meta
  34. BIN
      assets/pay/texture/desc12.png
  35. 134 0
      assets/pay/texture/desc12.png.meta
  36. BIN
      assets/pay/texture/icon_gold1.png
  37. 31 31
      assets/pay/texture/icon_gold1.png.meta
  38. BIN
      assets/pay/texture/icon_gold2.png
  39. 134 0
      assets/pay/texture/icon_gold2.png.meta
  40. BIN
      assets/pay/texture/line.png
  41. 28 28
      assets/pay/texture/line.png.meta
  42. 11 0
      assets/scene/script/MainScene.ts
  43. 1 1
      assets/scene/script/NavInfo.ts
  44. 0 21
      assets/scene/script/NodeEx.ts
  45. 1 0
      assets/scene/script/UtilsPanel.ts
  46. BIN
      assets/scene/texture/white.png
  47. 29 29
      assets/scene/texture/white.png.meta
  48. 1 1
      settings/v2/packages/project.json

+ 11 - 11
assets/pay/prefab/item.prefab

@@ -328,7 +328,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "icon_diamond",
+    "_name": "icon_gold2",
     "_objFlags": 0,
     "_parent": {
       "__id__": 1
@@ -387,8 +387,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 38,
-      "height": 30
+      "width": 37,
+      "height": 37
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -399,7 +399,7 @@
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "37EVod5idGg7qk8ga++aMC"
+    "fileId": "bf83YqYCtDhq03EOPp802D"
   },
   {
     "__type__": "cc.Sprite",
@@ -423,7 +423,7 @@
       "a": 255
     },
     "_spriteFrame": {
-      "__uuid__": "aa895b5f-0793-4bed-90b0-45633bb9e605@f9941",
+      "__uuid__": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
     "_type": 0,
@@ -443,7 +443,7 @@
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "07TnFtaWZH2JkV0AxHWbRG"
+    "fileId": "59MzOYN2JN9LZ5us5C7vRp"
   },
   {
     "__type__": "cc.PrefabInfo",
@@ -453,7 +453,7 @@
     "asset": {
       "__id__": 0
     },
-    "fileId": "0a1T3lkfJKHanwNp/gFqu1"
+    "fileId": "66Kcq24BZLmpuMby6qjbcd"
   },
   {
     "__type__": "cc.Node",
@@ -517,7 +517,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 0,
-      "height": 27.72
+      "height": 30.24
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -554,10 +554,10 @@
     "_string": "",
     "_horizontalAlign": 1,
     "_verticalAlign": 1,
-    "_actualFontSize": 20,
-    "_fontSize": 20,
+    "_actualFontSize": 22,
+    "_fontSize": 22,
     "_fontFamily": "Arial",
-    "_lineHeight": 22,
+    "_lineHeight": 24,
     "_overflow": 0,
     "_enableWrapText": true,
     "_font": null,

+ 2 - 2
assets/pay/prefab/pay.prefab

@@ -1190,7 +1190,7 @@
       "__uuid__": "d8a4c3c2-6e13-404d-8d13-a5ba4f860596",
       "__expectedType__": "cc.Prefab"
     },
-    "first_add_num": 1,
+    "first_add_num": 100,
     "every_frame_add": 1,
     "horizontal_num": 3,
     "auto_align_child": true,
@@ -1238,7 +1238,7 @@
     "node": {
       "__id__": 50
     },
-    "_enabled": true,
+    "_enabled": false,
     "__prefab": {
       "__id__": 56
     },

+ 1711 - 0
assets/pay/prefab/paycustom.prefab

@@ -0,0 +1,1711 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "paycustom",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false,
+    "asyncLoadAssets": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "paycustom",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 8
+      },
+      {
+        "__id__": 16
+      },
+      {
+        "__id__": 22
+      },
+      {
+        "__id__": 28
+      },
+      {
+        "__id__": 34
+      },
+      {
+        "__id__": 40
+      },
+      {
+        "__id__": 46
+      },
+      {
+        "__id__": 52
+      },
+      {
+        "__id__": 58
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 76
+      },
+      {
+        "__id__": 78
+      }
+    ],
+    "_prefab": {
+      "__id__": 80
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "white",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      }
+    ],
+    "_prefab": {
+      "__id__": 7
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 720,
+      "height": 1600
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "dbgoyjj/ZDcaWDZuG8CHMO"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 160
+    },
+    "_spriteFrame": {
+      "__uuid__": "b4971c80-ee5c-442c-b5be-d23f83df0880@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "fdoj7q++BAeaKrn5dBKvtv"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "d3e5nSlxRLK6rVP9BC4yVc"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bg3",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 9
+      },
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 13
+      }
+    ],
+    "_prefab": {
+      "__id__": 15
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 10
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 712,
+      "height": 716
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c1QEz+4U5I0JCRlLZyBmvV"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 12
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "4aK/NV+glBypFT4xEc9IGe"
+  },
+  {
+    "__type__": "cc.BlockInputEvents",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 14
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3cCJdHJqFCf4o6/EhGlJ7R"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a7EWq4CdZEh7mEvipW7nxM"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "auto_btn_close",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 19
+      }
+    ],
+    "_prefab": {
+      "__id__": 21
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 297,
+      "y": 399,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 18
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 98,
+      "height": 98
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b4n0Kxn2lLvJyss3ftNhEF"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 20
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "84a0b227-f808-4d12-bb7f-057c7a9fb670@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "bcJlIqBvtO1IgwpZhaGbOA"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "2310rHKvlD9o0sC3DEd9eL"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "icon_gold1",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 25
+      }
+    ],
+    "_prefab": {
+      "__id__": 27
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -231,
+      "y": 107,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 22
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 24
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 99,
+      "height": 98
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "53TyHAWCdPS7LT62UsT0Nv"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 22
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 26
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "6f3cd02c-e826-4e65-a22e-d09d87349bbc@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "2a4ne7AqdAxaVOtNL1F/rL"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "4aJEw3/FxCHoyvx14azr2Q"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "line",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 29
+      },
+      {
+        "__id__": 31
+      }
+    ],
+    "_prefab": {
+      "__id__": 33
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -173,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 30
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 566,
+      "height": 2
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "76d+wOFWNE4o74UN7k3gcE"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 32
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "0dnAALoDlHZIb63CdSf4yn"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b3ItrU3pxA65+Yd17OpfoT"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "desc12",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 35
+      },
+      {
+        "__id__": 37
+      }
+    ],
+    "_prefab": {
+      "__id__": 39
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 222,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 34
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 36
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 556,
+      "height": 54
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "43xkAIbPpIE5XMLHbfg0O3"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 34
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 38
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "5775gy6hVCDZUGB0ldSDUp"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a6kgU/eyZCm6yPPF7h1YSa"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "desc11",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 41
+      },
+      {
+        "__id__": 43
+      }
+    ],
+    "_prefab": {
+      "__id__": 45
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 40
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 42
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 541,
+      "height": 66
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9bNL7/cZhNA6GUFooSV5JJ"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 40
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 44
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "20e16a1c-b584-4de2-ab79-2be078c468ed@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8fqJqNCOhCp6AFVZ55EFi2"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "8cQHvt69xGMr4kfN9vkfvH"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "auto_btn_buy",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 47
+      },
+      {
+        "__id__": 49
+      }
+    ],
+    "_prefab": {
+      "__id__": 51
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -245,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 46
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 48
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 631,
+      "height": 103
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d52P+S3qdPcq/0UIqhAPMQ"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 46
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 50
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "bbf258c4-9da9-49ec-a06b-1c4d4773cb3f@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8fivNcC0xHFYeOOgoMlxrG"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "6evjDR2OdKPYoqqsOt2c5q"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "lb_gold",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 53
+      },
+      {
+        "__id__": 55
+      }
+    ],
+    "_prefab": {
+      "__id__": 57
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -154,
+      "y": 108,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 52
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 54
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 126.77,
+      "height": 78.12
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "28wO0eF8JE5owjn0yptdsn"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 52
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 56
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 145,
+      "g": 109,
+      "b": 16,
+      "a": 255
+    },
+    "_string": "label",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 60,
+    "_fontSize": 60,
+    "_fontFamily": "Arial",
+    "_lineHeight": 62,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "19MEFjrpFLJ7RZ4rygv5Eu"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "54+94ovhtNoY1lG/qWlM2I"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "edit_money",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 59
+      },
+      {
+        "__id__": 65
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 71
+      },
+      {
+        "__id__": 73
+      }
+    ],
+    "_prefab": {
+      "__id__": 75
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -103,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "TEXT_LABEL",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 58
+    },
+    "_children": [],
+    "_active": false,
+    "_components": [
+      {
+        "__id__": 60
+      },
+      {
+        "__id__": 62
+      }
+    ],
+    "_prefab": {
+      "__id__": 64
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -298,
+      "y": 40,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 59
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 61
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 598,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "39GPRF3jVERq8Ionepjn3n"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 59
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 63
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 145,
+      "g": 109,
+      "b": 16,
+      "a": 255
+    },
+    "_string": "",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 60,
+    "_fontSize": 60,
+    "_fontFamily": "Arial",
+    "_lineHeight": 62,
+    "_overflow": 1,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9axHBQHdNAl43Ut0AVw6C9"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "d7wYhxsOJGDo12xJV7/0aK"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "PLACEHOLDER_LABEL",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 58
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 66
+      },
+      {
+        "__id__": 68
+      }
+    ],
+    "_prefab": {
+      "__id__": 70
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -298,
+      "y": 40,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 65
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 67
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 598,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "20PYlm/ehCVKbUwJALd+pO"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 65
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 69
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 187,
+      "g": 187,
+      "b": 187,
+      "a": 255
+    },
+    "_string": "",
+    "_horizontalAlign": 0,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 80,
+    "_overflow": 1,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "07WHMIeYxPoKm2ug8a4kA0"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c1pSin5k9Om7xNCuNUAHz/"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 58
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 72
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 600,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e6nkTqYEFIcqTD1GFiWEnq"
+  },
+  {
+    "__type__": "cc.EditBox",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 58
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 74
+    },
+    "editingDidBegan": [],
+    "textChanged": [],
+    "editingDidEnded": [],
+    "editingReturn": [],
+    "_textLabel": {
+      "__id__": 62
+    },
+    "_placeholderLabel": {
+      "__id__": 68
+    },
+    "_returnType": 0,
+    "_string": "",
+    "_tabIndex": 0,
+    "_backgroundImage": null,
+    "_inputFlag": 5,
+    "_inputMode": 3,
+    "_maxLength": 10,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "40AX7XyoRD949KgMv4Ht5a"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "4a0gYblh9P0azRdslBBGbE"
+  },
+  {
+    "__type__": "ef2acjA525JyZS3MnrkiKGy",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 77
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "eatDfj3AJHb68epI6kzlfk"
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 79
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "dd89QvTXZO8oxMD5RH2AlK"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "9ectHAgTBMGozWTD8VI6KX"
+  }
+]

+ 13 - 0
assets/pay/prefab/paycustom.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.40",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "a3ead9c9-ead3-431a-a256-d2aacfd4756e",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "paycustom"
+  }
+}

+ 23 - 7
assets/pay/script/ItemPay.ts

@@ -3,7 +3,7 @@ import { _decorator, Component, game, Label, Node, Sprite } from 'cc';
 import { UtilsPanel } from '../../scene/script/UtilsPanel';
 import { ViewItemPro } from '../../scene/script/components/ViewItemPro';
 import { nav_info } from '../../scene/script/NavInfo';
-import { ShopData } from './Pay';
+import { Pay, ShopData } from './Pay';
 const { ccclass } = _decorator;
 
 @ccclass('ItemPay')
@@ -12,20 +12,36 @@ export class ItemPay extends ViewItemPro {
     private sp_icon: Sprite = null;
 	private lb_count: Label = null;
 
-    private index = null;
+    private money = 0;
+    private gold = 0;
+
 	protected onLoad(){
 		UtilsPanel.getAllNeedCom(this, this.node, false);
         UtilsPanel.addBtnEvent(this.node, this.onClick, this);
 	}
 
-    public init(data:ShopData, index?: number, p?: any): void {
+    public init(data:any, index: number, p0?: any): void {
+        let p = Pay.data_shop;
+        if(index == p.DefaultPrice.length){
+            this.money = -1;
+            this.lb_count.string = "أدخل المبلغ";
+        }
+        else{
+            this.money = p.DefaultPrice[index];
+            this.gold = Pay.clacGold(this.money);
+            this.lb_count.string = "" + this.gold;
+        }
         if(index > 5)index = 5;
-        this.index = index;
-        this.lb_count.string = "" + data.Extra[0].Count;
-        UtilsPanel.setItemIcon(nav_info.bundle, "texture/2"+index+"/spriteFrame", this.sp_icon);
+
+        UtilsPanel.setItemIcon(nav_info.bundle, "texture/1"+index+"/spriteFrame", this.sp_icon);
     }
 
     public onClick(){
-        game.emit("select_item", this.index);
+        if(this.money == -1){
+            nav_info.scene.showByUrl("prefab/paycustom");
+        }
+        else{
+            game.emit("select_item", this.money, this.gold);
+        }
     }
 }

+ 56 - 37
assets/pay/script/Pay.ts

@@ -6,30 +6,44 @@ import { Config, nav_info } from '../../scene/script/NavInfo';
 import { WebRequest } from '../../scene/script/WebRequest';
 const { ccclass, property } = _decorator;
 
-type ItemType = {
-    ItemId: number
-    Count: number
+type RateInfo = {
+    Min: number
+    Max: number
+    Ratio: number
 }
+//money * rate * (1 + Ratio) = gold;
 export type ShopData = {
-    AninationType: number
-    Bonus: number
-    Extra: Array<ItemType>
-    IsBotton: number
-    IsHot: number
-    PayType: number
-    Price: number
-    ProductDesc: string
-    ProductId: string
-    ProductName: string
-    ShopType: number
-    ShowPrice: number
-    Sort: number
-    Status: number
-    UserType: number
+    MinMoney: number //最小金额
+    Rate: number //金币/钱
+    DefaultPrice: number[] //默认商品
+    RatioConfig: RateInfo[]
 }
 
 @ccclass('Pay')
 export class Pay extends Component {
+    
+    public static clacGold(money: number){
+        let config = Pay.data_shop;
+        if(!config || money < config.MinMoney)return 0;
+        let ratio_info = config.RatioConfig.find(function(info){return money >= info.Min && money <= info.Max});
+        if(!ratio_info){
+            let ratios = config.RatioConfig;
+            ratio_info = ratios[ratios.length - 1];
+        }
+        return Math.floor(money * (ratio_info.Ratio + 1) * config.Rate);
+    }
+    public static buy(price:number){
+        let user_id = Pay.user_id;
+        if(user_id.length == 0){
+            nav_info.scene.showTip("please input user id");
+            return;
+        }
+        let url = nav_info.is_test ? Config.url_pay_test : Config.url_pay;
+        let final_url = `${url}?UserID=${user_id}&Price=${price}&ProductID=0&PartnerID=110&Currency=SAR&Country=SA&T=${new Date().getTime()}`;
+        window.open(final_url);
+    }
+    public static user_id = "";
+    public static data_shop:ShopData = null;
 
     private node_descid: Node = null;
 	private node_buy: Node = null;
@@ -37,44 +51,49 @@ export class Pay extends Component {
 	private lb_money: Label = null;
 	private edit_id: EditBox = null;
     
-    private data: ShopData[] = null;
-    private select_data:ShopData = null;
+    private select_data = 0;
 
-	protected onLoad(){
+	protected start(){
 		UtilsPanel.getAllNeedCom(this, this.node, false);
         UtilsPanel.addBtnEvent(this.node_buy, this.onBuy, this);
         // @ts-ignore
         game.on("select_item", this.onSelect, this);
         let url = nav_info.is_test ? Config.url_product_test : Config.url_product;
+        // this.test();return;
         new WebRequest().getData(url, "", (succ:boolean,content:string)=>{
             if(succ){
-                this.data = JSON.parse(JSON.parse(content).Data);
+                let info:ShopData = Pay.data_shop = JSON.parse(content);
+                // console.log("fwef:",info);
+                this.gene_items.initData(new Array(info.DefaultPrice.length + 1));
             }
-            this.gene_items.initData(this.data);
-            // console.log("fwef:",this.data);
         }, false);
 	}
     private onEditChange(){
         this.node_descid.active = this.edit_id.string.length == 0;
+        Pay.user_id = this.edit_id.string;
     }
-    private onSelect(index:number){
-        this.select_data = this.data[index];
-        this.lb_money.string = this.select_data.Price + "";
+    private onSelect(money:number, gold:number){
+        this.select_data = money;
+        this.lb_money.string = money + "";
     }
     private onBuy(){
-        let user_id = this.edit_id.string;
-        if(user_id.length == 0){
-            nav_info.scene.showTip("please input user id");
-            return;
-        }
-        if(!this.select_data){
+        if(this.select_data == 0){
             nav_info.scene.showTip("please select product");
             return;
         }
-        let data = this.select_data;
-        let url = nav_info.is_test ? Config.url_pay_test : Config.url_pay;
-        let final_url = `${url}?UserID=${user_id}&Price=${data.Price}&ProductID=${data.ProductId}&PartnerID=110&Currency=SAR&Country=SA&T=${new Date().getTime()}`;
-        window.open(final_url);
+        Pay.buy(this.select_data);
     }
+    // private test(){
+    //     let info = Pay.data_shop = {"MinMoney": 450, "Rate": 10000, "DefaultPrice": [1000,3000,6000,8000,10000],
+    //     	"RatioConfig": [
+    //     	{"Min":400,"Max": 1000, "Ratio": 0.7},
+    //     	{"Min":1001,"Max": 3000, "Ratio": 0.8},
+    //     	{"Min":3001,"Max": 6000, "Ratio": 1},
+    //     	{"Min":6001,"Max": 8000, "Ratio": 1.2},
+    //     	{"Min":8001,"Max": 10000, "Ratio": 1.4},
+    //     	{"Min":10001,"Max": 10000000, "Ratio": 2}
+    //     	]}
+    //     this.gene_items.initData(new Array(info.DefaultPrice.length + 1));
+    // }
     
 }

+ 61 - 0
assets/pay/script/PayCustom.ts

@@ -0,0 +1,61 @@
+
+import { _decorator, Component, EditBox, EventHandle, EventHandler, js, Label, Node, utils } from 'cc';
+import { UtilsPanel } from '../../scene/script/UtilsPanel';
+import { Pay } from './Pay';
+
+const { ccclass } = _decorator;
+
+@ccclass('PayCustom')
+export class PayCustom extends Component {
+    
+    private lb_gold: Label = null;
+	private edit_money: EditBox = null;
+
+    private money = 0;
+	protected onLoad(){
+		UtilsPanel.getAllNeedCom(this, this.node, false);
+        let handler = new EventHandler();
+        handler.target = this.node;
+        handler.component = js.getClassName(this);
+        handler.handler = "checkNum";
+        this.edit_money.textChanged.push(handler)
+	}
+    protected start(): void {
+        this.money = Pay.data_shop.MinMoney;
+        this.edit_money.string = this.money + "";
+        this.refreshGold();
+    }
+    private checkNum(text: string){
+        let index = text.indexOf(".");
+        let revise = false;
+        if(index > -1){
+            revise = true;
+            text = text.replace(".", "");
+        }
+        let num = parseInt(text);
+        if(num <  Pay.data_shop.MinMoney){
+            revise = true;
+            num = Pay.data_shop.MinMoney
+            text = "" +  num;
+        }
+        if(revise){
+            //@ts-ignore
+            this.edit_money._impl._edTxt.value = text;
+            this.edit_money.string = text;
+        }
+        if(num != this.money){
+            this.money = num;
+            this.refreshGold();
+        }
+    }
+    private refreshGold(){
+        this.lb_gold.string = Pay.clacGold(this.money) + "";
+    }
+	private onCloseClick(){
+		this.node.destroy();
+	}
+    private onBuyClick(){
+		Pay.buy(this.money);
+	}
+
+}

+ 9 - 0
assets/pay/script/PayCustom.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "ef2ac8c0-e76e-49c9-94b7-327ae488a1b2",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

BIN
assets/pay/texture/10.png


+ 134 - 0
assets/pay/texture/10.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "75ee62be-c948-4196-b588-257485e38f5b",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "75ee62be-c948-4196-b588-257485e38f5b@6c48a",
+      "displayName": "10",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "75ee62be-c948-4196-b588-257485e38f5b",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "75ee62be-c948-4196-b588-257485e38f5b@f9941",
+      "displayName": "10",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0.5,
+        "trimX": 19,
+        "trimY": 24,
+        "width": 88,
+        "height": 77,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -44,
+            -38.5,
+            0,
+            44,
+            -38.5,
+            0,
+            -44,
+            38.5,
+            0,
+            44,
+            38.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            19,
+            102,
+            107,
+            102,
+            19,
+            25,
+            107,
+            25
+          ],
+          "nuv": [
+            0.15079365079365079,
+            0.1984126984126984,
+            0.8492063492063492,
+            0.1984126984126984,
+            0.15079365079365079,
+            0.8095238095238095,
+            0.8492063492063492,
+            0.8095238095238095
+          ],
+          "minPos": [
+            -44,
+            -38.5,
+            0
+          ],
+          "maxPos": [
+            44,
+            38.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "75ee62be-c948-4196-b588-257485e38f5b@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "75ee62be-c948-4196-b588-257485e38f5b@f9941"
+  }
+}

BIN
assets/pay/texture/11.png


+ 134 - 0
assets/pay/texture/11.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "7069d96d-5319-402b-80e3-6d7136e9856b",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "7069d96d-5319-402b-80e3-6d7136e9856b@6c48a",
+      "displayName": "11",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "7069d96d-5319-402b-80e3-6d7136e9856b",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "7069d96d-5319-402b-80e3-6d7136e9856b@f9941",
+      "displayName": "11",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 1.5,
+        "offsetY": -0.5,
+        "trimX": 4,
+        "trimY": 13,
+        "width": 121,
+        "height": 101,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -60.5,
+            -50.5,
+            0,
+            60.5,
+            -50.5,
+            0,
+            -60.5,
+            50.5,
+            0,
+            60.5,
+            50.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            4,
+            113,
+            125,
+            113,
+            4,
+            12,
+            125,
+            12
+          ],
+          "nuv": [
+            0.031746031746031744,
+            0.09523809523809523,
+            0.9920634920634921,
+            0.09523809523809523,
+            0.031746031746031744,
+            0.8968253968253969,
+            0.9920634920634921,
+            0.8968253968253969
+          ],
+          "minPos": [
+            -60.5,
+            -50.5,
+            0
+          ],
+          "maxPos": [
+            60.5,
+            50.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "7069d96d-5319-402b-80e3-6d7136e9856b@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "7069d96d-5319-402b-80e3-6d7136e9856b@f9941"
+  }
+}

BIN
assets/pay/texture/12.png


+ 134 - 0
assets/pay/texture/12.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "087f172c-a800-4a32-9f99-3bb01888d622",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "087f172c-a800-4a32-9f99-3bb01888d622@6c48a",
+      "displayName": "12",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "087f172c-a800-4a32-9f99-3bb01888d622",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "087f172c-a800-4a32-9f99-3bb01888d622@f9941",
+      "displayName": "12",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -2,
+        "offsetY": 0.5,
+        "trimX": 4,
+        "trimY": 11,
+        "width": 114,
+        "height": 103,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -57,
+            -51.5,
+            0,
+            57,
+            -51.5,
+            0,
+            -57,
+            51.5,
+            0,
+            57,
+            51.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            4,
+            115,
+            118,
+            115,
+            4,
+            12,
+            118,
+            12
+          ],
+          "nuv": [
+            0.031746031746031744,
+            0.09523809523809523,
+            0.9365079365079365,
+            0.09523809523809523,
+            0.031746031746031744,
+            0.9126984126984127,
+            0.9365079365079365,
+            0.9126984126984127
+          ],
+          "minPos": [
+            -57,
+            -51.5,
+            0
+          ],
+          "maxPos": [
+            57,
+            51.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "087f172c-a800-4a32-9f99-3bb01888d622@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "087f172c-a800-4a32-9f99-3bb01888d622@f9941"
+  }
+}

BIN
assets/pay/texture/13.png


+ 134 - 0
assets/pay/texture/13.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b@6c48a",
+      "displayName": "13",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b@f9941",
+      "displayName": "13",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 1,
+        "trimX": 0,
+        "trimY": 13,
+        "width": 126,
+        "height": 98,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -63,
+            -49,
+            0,
+            63,
+            -49,
+            0,
+            -63,
+            49,
+            0,
+            63,
+            49,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            113,
+            126,
+            113,
+            0,
+            15,
+            126,
+            15
+          ],
+          "nuv": [
+            0,
+            0.11904761904761904,
+            1,
+            0.11904761904761904,
+            0,
+            0.8968253968253969,
+            1,
+            0.8968253968253969
+          ],
+          "minPos": [
+            -63,
+            -49,
+            0
+          ],
+          "maxPos": [
+            63,
+            49,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "d460e467-8f1a-4c7e-85f5-2d23f7aa032b@f9941"
+  }
+}

BIN
assets/pay/texture/14.png


+ 134 - 0
assets/pay/texture/14.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "4e255310-46e4-4dc1-9ad6-f330c9676248",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "4e255310-46e4-4dc1-9ad6-f330c9676248@6c48a",
+      "displayName": "14",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "4e255310-46e4-4dc1-9ad6-f330c9676248",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "4e255310-46e4-4dc1-9ad6-f330c9676248@f9941",
+      "displayName": "14",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0.5,
+        "offsetY": -4,
+        "trimX": 5,
+        "trimY": 10,
+        "width": 117,
+        "height": 114,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -58.5,
+            -57,
+            0,
+            58.5,
+            -57,
+            0,
+            -58.5,
+            57,
+            0,
+            58.5,
+            57,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            5,
+            116,
+            122,
+            116,
+            5,
+            2,
+            122,
+            2
+          ],
+          "nuv": [
+            0.03968253968253968,
+            0.015873015873015872,
+            0.9682539682539683,
+            0.015873015873015872,
+            0.03968253968253968,
+            0.9206349206349206,
+            0.9682539682539683,
+            0.9206349206349206
+          ],
+          "minPos": [
+            -58.5,
+            -57,
+            0
+          ],
+          "maxPos": [
+            58.5,
+            57,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "4e255310-46e4-4dc1-9ad6-f330c9676248@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "4e255310-46e4-4dc1-9ad6-f330c9676248@f9941"
+  }
+}

BIN
assets/pay/texture/15.png


+ 134 - 0
assets/pay/texture/15.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "fc018171-0dc4-4368-ac10-4dd73bdb8471",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "fc018171-0dc4-4368-ac10-4dd73bdb8471@6c48a",
+      "displayName": "15",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "fc018171-0dc4-4368-ac10-4dd73bdb8471",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "fc018171-0dc4-4368-ac10-4dd73bdb8471@f9941",
+      "displayName": "15",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": -4.5,
+        "trimX": 0,
+        "trimY": 9,
+        "width": 126,
+        "height": 117,
+        "rawWidth": 126,
+        "rawHeight": 126,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -63,
+            -58.5,
+            0,
+            63,
+            -58.5,
+            0,
+            -63,
+            58.5,
+            0,
+            63,
+            58.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            117,
+            126,
+            117,
+            0,
+            0,
+            126,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            0.9285714285714286,
+            1,
+            0.9285714285714286
+          ],
+          "minPos": [
+            -63,
+            -58.5,
+            0
+          ],
+          "maxPos": [
+            63,
+            58.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "fc018171-0dc4-4368-ac10-4dd73bdb8471@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "fc018171-0dc4-4368-ac10-4dd73bdb8471@f9941"
+  }
+}

BIN
assets/pay/texture/20.png


BIN
assets/pay/texture/21.png


BIN
assets/pay/texture/22.png


BIN
assets/pay/texture/23.png


BIN
assets/pay/texture/24.png


BIN
assets/pay/texture/25.png


+ 0 - 134
assets/pay/texture/25.png.meta

@@ -1,134 +0,0 @@
-{
-  "ver": "1.0.25",
-  "importer": "image",
-  "imported": true,
-  "uuid": "fe430999-c39d-4404-bac7-d23beb0943c4",
-  "files": [
-    ".json",
-    ".png"
-  ],
-  "subMetas": {
-    "6c48a": {
-      "importer": "texture",
-      "uuid": "fe430999-c39d-4404-bac7-d23beb0943c4@6c48a",
-      "displayName": "25",
-      "id": "6c48a",
-      "name": "texture",
-      "userData": {
-        "wrapModeS": "clamp-to-edge",
-        "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "fe430999-c39d-4404-bac7-d23beb0943c4",
-        "isUuid": true,
-        "visible": false,
-        "minfilter": "linear",
-        "magfilter": "linear",
-        "mipfilter": "none",
-        "anisotropy": 0
-      },
-      "ver": "1.0.22",
-      "imported": true,
-      "files": [
-        ".json"
-      ],
-      "subMetas": {}
-    },
-    "f9941": {
-      "importer": "sprite-frame",
-      "uuid": "fe430999-c39d-4404-bac7-d23beb0943c4@f9941",
-      "displayName": "25",
-      "id": "f9941",
-      "name": "spriteFrame",
-      "userData": {
-        "trimType": "auto",
-        "trimThreshold": 1,
-        "rotated": false,
-        "offsetX": 0,
-        "offsetY": 0,
-        "trimX": 0,
-        "trimY": 0,
-        "width": 123,
-        "height": 109,
-        "rawWidth": 123,
-        "rawHeight": 109,
-        "borderTop": 0,
-        "borderBottom": 0,
-        "borderLeft": 0,
-        "borderRight": 0,
-        "packable": true,
-        "pixelsToUnit": 100,
-        "pivotX": 0.5,
-        "pivotY": 0.5,
-        "meshType": 0,
-        "vertices": {
-          "rawPosition": [
-            -61.5,
-            -54.5,
-            0,
-            61.5,
-            -54.5,
-            0,
-            -61.5,
-            54.5,
-            0,
-            61.5,
-            54.5,
-            0
-          ],
-          "indexes": [
-            0,
-            1,
-            2,
-            2,
-            1,
-            3
-          ],
-          "uv": [
-            0,
-            109,
-            123,
-            109,
-            0,
-            0,
-            123,
-            0
-          ],
-          "nuv": [
-            0,
-            0,
-            1,
-            0,
-            0,
-            1,
-            1,
-            1
-          ],
-          "minPos": [
-            -61.5,
-            -54.5,
-            0
-          ],
-          "maxPos": [
-            61.5,
-            54.5,
-            0
-          ]
-        },
-        "isUuid": true,
-        "imageUuidOrDatabaseUri": "fe430999-c39d-4404-bac7-d23beb0943c4@6c48a",
-        "atlasUuid": ""
-      },
-      "ver": "1.0.11",
-      "imported": true,
-      "files": [
-        ".json"
-      ],
-      "subMetas": {}
-    }
-  },
-  "userData": {
-    "type": "sprite-frame",
-    "fixAlphaTransparencyArtifacts": true,
-    "hasAlpha": true,
-    "redirect": "fe430999-c39d-4404-bac7-d23beb0943c4@f9941"
-  }
-}

BIN
assets/pay/texture/bg3.png


+ 28 - 28
assets/pay/texture/22.png.meta → assets/pay/texture/bg3.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.25",
   "importer": "image",
   "imported": true,
-  "uuid": "01500f06-1d25-4cdc-9810-44e3337a1da5",
+  "uuid": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "01500f06-1d25-4cdc-9810-44e3337a1da5@6c48a",
-      "displayName": "22",
+      "uuid": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24@6c48a",
+      "displayName": "bg3",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "01500f06-1d25-4cdc-9810-44e3337a1da5",
+        "imageUuidOrDatabaseUri": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,8 +34,8 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "01500f06-1d25-4cdc-9810-44e3337a1da5@f9941",
-      "displayName": "22",
+      "uuid": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24@f9941",
+      "displayName": "bg3",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 118,
-        "height": 79,
-        "rawWidth": 118,
-        "rawHeight": 79,
+        "width": 712,
+        "height": 716,
+        "rawWidth": 712,
+        "rawHeight": 716,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -59,
-            -39.5,
+            -356,
+            -358,
             0,
-            59,
-            -39.5,
+            356,
+            -358,
             0,
-            -59,
-            39.5,
+            -356,
+            358,
             0,
-            59,
-            39.5,
+            356,
+            358,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            79,
-            118,
-            79,
+            716,
+            712,
+            716,
             0,
             0,
-            118,
+            712,
             0
           ],
           "nuv": [
@@ -103,18 +103,18 @@
             1
           ],
           "minPos": [
-            -59,
-            -39.5,
+            -356,
+            -358,
             0
           ],
           "maxPos": [
-            59,
-            39.5,
+            356,
+            358,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "01500f06-1d25-4cdc-9810-44e3337a1da5@6c48a",
+        "imageUuidOrDatabaseUri": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.11",
@@ -129,6 +129,6 @@
     "type": "sprite-frame",
     "fixAlphaTransparencyArtifacts": true,
     "hasAlpha": true,
-    "redirect": "01500f06-1d25-4cdc-9810-44e3337a1da5@f9941"
+    "redirect": "8fa076ad-fb26-49ab-ad08-5aef0e5c0d24@f9941"
   }
 }

BIN
assets/pay/texture/btn_close.png


+ 28 - 28
assets/pay/texture/21.png.meta → assets/pay/texture/btn_close.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.25",
   "importer": "image",
   "imported": true,
-  "uuid": "83ecadd1-ffc6-4844-8421-b674f9864fc2",
+  "uuid": "84a0b227-f808-4d12-bb7f-057c7a9fb670",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "83ecadd1-ffc6-4844-8421-b674f9864fc2@6c48a",
-      "displayName": "21",
+      "uuid": "84a0b227-f808-4d12-bb7f-057c7a9fb670@6c48a",
+      "displayName": "btn_close",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "83ecadd1-ffc6-4844-8421-b674f9864fc2",
+        "imageUuidOrDatabaseUri": "84a0b227-f808-4d12-bb7f-057c7a9fb670",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,8 +34,8 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "83ecadd1-ffc6-4844-8421-b674f9864fc2@f9941",
-      "displayName": "21",
+      "uuid": "84a0b227-f808-4d12-bb7f-057c7a9fb670@f9941",
+      "displayName": "btn_close",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 78,
-        "height": 57,
-        "rawWidth": 78,
-        "rawHeight": 57,
+        "width": 98,
+        "height": 98,
+        "rawWidth": 98,
+        "rawHeight": 98,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -39,
-            -28.5,
+            -49,
+            -49,
             0,
-            39,
-            -28.5,
+            49,
+            -49,
             0,
-            -39,
-            28.5,
+            -49,
+            49,
             0,
-            39,
-            28.5,
+            49,
+            49,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            57,
-            78,
-            57,
+            98,
+            98,
+            98,
             0,
             0,
-            78,
+            98,
             0
           ],
           "nuv": [
@@ -103,18 +103,18 @@
             1
           ],
           "minPos": [
-            -39,
-            -28.5,
+            -49,
+            -49,
             0
           ],
           "maxPos": [
-            39,
-            28.5,
+            49,
+            49,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "83ecadd1-ffc6-4844-8421-b674f9864fc2@6c48a",
+        "imageUuidOrDatabaseUri": "84a0b227-f808-4d12-bb7f-057c7a9fb670@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.11",
@@ -129,6 +129,6 @@
     "type": "sprite-frame",
     "fixAlphaTransparencyArtifacts": true,
     "hasAlpha": true,
-    "redirect": "83ecadd1-ffc6-4844-8421-b674f9864fc2@f9941"
+    "redirect": "84a0b227-f808-4d12-bb7f-057c7a9fb670@f9941"
   }
 }

BIN
assets/pay/texture/desc11.png


+ 134 - 0
assets/pay/texture/desc11.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "20e16a1c-b584-4de2-ab79-2be078c468ed",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "20e16a1c-b584-4de2-ab79-2be078c468ed@6c48a",
+      "displayName": "desc11",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "20e16a1c-b584-4de2-ab79-2be078c468ed",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "20e16a1c-b584-4de2-ab79-2be078c468ed@f9941",
+      "displayName": "desc11",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -1.5,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 2,
+        "width": 541,
+        "height": 66,
+        "rawWidth": 544,
+        "rawHeight": 70,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -270.5,
+            -33,
+            0,
+            270.5,
+            -33,
+            0,
+            -270.5,
+            33,
+            0,
+            270.5,
+            33,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            68,
+            541,
+            68,
+            0,
+            2,
+            541,
+            2
+          ],
+          "nuv": [
+            0,
+            0.02857142857142857,
+            0.9944852941176471,
+            0.02857142857142857,
+            0,
+            0.9714285714285714,
+            0.9944852941176471,
+            0.9714285714285714
+          ],
+          "minPos": [
+            -270.5,
+            -33,
+            0
+          ],
+          "maxPos": [
+            270.5,
+            33,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "20e16a1c-b584-4de2-ab79-2be078c468ed@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "20e16a1c-b584-4de2-ab79-2be078c468ed@f9941"
+  }
+}

BIN
assets/pay/texture/desc12.png


+ 134 - 0
assets/pay/texture/desc12.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a@6c48a",
+      "displayName": "desc12",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a@f9941",
+      "displayName": "desc12",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 4,
+        "trimY": 5,
+        "width": 556,
+        "height": 54,
+        "rawWidth": 564,
+        "rawHeight": 64,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -278,
+            -27,
+            0,
+            278,
+            -27,
+            0,
+            -278,
+            27,
+            0,
+            278,
+            27,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            4,
+            59,
+            560,
+            59,
+            4,
+            5,
+            560,
+            5
+          ],
+          "nuv": [
+            0.0070921985815602835,
+            0.078125,
+            0.9929078014184397,
+            0.078125,
+            0.0070921985815602835,
+            0.921875,
+            0.9929078014184397,
+            0.921875
+          ],
+          "minPos": [
+            -278,
+            -27,
+            0
+          ],
+          "maxPos": [
+            278,
+            27,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "14cd4d2b-1d10-4e16-9c1e-5eff20d0720a@f9941"
+  }
+}

BIN
assets/pay/texture/icon_gold1.png


+ 31 - 31
assets/pay/texture/23.png.meta → assets/pay/texture/icon_gold1.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.25",
   "importer": "image",
   "imported": true,
-  "uuid": "d4682837-28de-4fd7-8bdc-149d7557a04e",
+  "uuid": "6f3cd02c-e826-4e65-a22e-d09d87349bbc",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "d4682837-28de-4fd7-8bdc-149d7557a04e@6c48a",
-      "displayName": "23",
+      "uuid": "6f3cd02c-e826-4e65-a22e-d09d87349bbc@6c48a",
+      "displayName": "icon_gold1",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "d4682837-28de-4fd7-8bdc-149d7557a04e",
+        "imageUuidOrDatabaseUri": "6f3cd02c-e826-4e65-a22e-d09d87349bbc",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,22 +34,22 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "d4682837-28de-4fd7-8bdc-149d7557a04e@f9941",
-      "displayName": "23",
+      "uuid": "6f3cd02c-e826-4e65-a22e-d09d87349bbc@f9941",
+      "displayName": "icon_gold1",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
         "trimType": "auto",
         "trimThreshold": 1,
         "rotated": false,
-        "offsetX": 0,
+        "offsetX": -0.5,
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 111,
-        "height": 91,
-        "rawWidth": 111,
-        "rawHeight": 91,
+        "width": 99,
+        "height": 98,
+        "rawWidth": 100,
+        "rawHeight": 98,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -55.5,
-            -45.5,
+            -49.5,
+            -49,
             0,
-            55.5,
-            -45.5,
+            49.5,
+            -49,
             0,
-            -55.5,
-            45.5,
+            -49.5,
+            49,
             0,
-            55.5,
-            45.5,
+            49.5,
+            49,
             0
           ],
           "indexes": [
@@ -84,37 +84,37 @@
           ],
           "uv": [
             0,
-            91,
-            111,
-            91,
+            98,
+            99,
+            98,
             0,
             0,
-            111,
+            99,
             0
           ],
           "nuv": [
             0,
             0,
-            1,
+            0.99,
             0,
             0,
             1,
-            1,
+            0.99,
             1
           ],
           "minPos": [
-            -55.5,
-            -45.5,
+            -49.5,
+            -49,
             0
           ],
           "maxPos": [
-            55.5,
-            45.5,
+            49.5,
+            49,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "d4682837-28de-4fd7-8bdc-149d7557a04e@6c48a",
+        "imageUuidOrDatabaseUri": "6f3cd02c-e826-4e65-a22e-d09d87349bbc@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.11",
@@ -129,6 +129,6 @@
     "type": "sprite-frame",
     "fixAlphaTransparencyArtifacts": true,
     "hasAlpha": true,
-    "redirect": "d4682837-28de-4fd7-8bdc-149d7557a04e@f9941"
+    "redirect": "6f3cd02c-e826-4e65-a22e-d09d87349bbc@f9941"
   }
 }

BIN
assets/pay/texture/icon_gold2.png


+ 134 - 0
assets/pay/texture/icon_gold2.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.25",
+  "importer": "image",
+  "imported": true,
+  "uuid": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116@6c48a",
+      "displayName": "icon_gold2",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116@f9941",
+      "displayName": "icon_gold2",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -0.5,
+        "offsetY": -1.5,
+        "trimX": 3,
+        "trimY": 5,
+        "width": 37,
+        "height": 37,
+        "rawWidth": 44,
+        "rawHeight": 44,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -18.5,
+            -18.5,
+            0,
+            18.5,
+            -18.5,
+            0,
+            -18.5,
+            18.5,
+            0,
+            18.5,
+            18.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            3,
+            39,
+            40,
+            39,
+            3,
+            2,
+            40,
+            2
+          ],
+          "nuv": [
+            0.06818181818181818,
+            0.045454545454545456,
+            0.9090909090909091,
+            0.045454545454545456,
+            0.06818181818181818,
+            0.8863636363636364,
+            0.9090909090909091,
+            0.8863636363636364
+          ],
+          "minPos": [
+            -18.5,
+            -18.5,
+            0
+          ],
+          "maxPos": [
+            18.5,
+            18.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.11",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": true,
+    "hasAlpha": true,
+    "redirect": "9c24ea9c-9eca-4c4e-a299-0e7ae1c8c116@f9941"
+  }
+}

BIN
assets/pay/texture/line.png


+ 28 - 28
assets/pay/texture/20.png.meta → assets/pay/texture/line.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.25",
   "importer": "image",
   "imported": true,
-  "uuid": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03",
+  "uuid": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03@6c48a",
-      "displayName": "20",
+      "uuid": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4@6c48a",
+      "displayName": "line",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03",
+        "imageUuidOrDatabaseUri": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,8 +34,8 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03@f9941",
-      "displayName": "20",
+      "uuid": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4@f9941",
+      "displayName": "line",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 63,
-        "height": 50,
-        "rawWidth": 63,
-        "rawHeight": 50,
+        "width": 566,
+        "height": 2,
+        "rawWidth": 566,
+        "rawHeight": 2,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -31.5,
-            -25,
+            -283,
+            -1,
             0,
-            31.5,
-            -25,
+            283,
+            -1,
             0,
-            -31.5,
-            25,
+            -283,
+            1,
             0,
-            31.5,
-            25,
+            283,
+            1,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            50,
-            63,
-            50,
+            2,
+            566,
+            2,
             0,
             0,
-            63,
+            566,
             0
           ],
           "nuv": [
@@ -103,18 +103,18 @@
             1
           ],
           "minPos": [
-            -31.5,
-            -25,
+            -283,
+            -1,
             0
           ],
           "maxPos": [
-            31.5,
-            25,
+            283,
+            1,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03@6c48a",
+        "imageUuidOrDatabaseUri": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.11",
@@ -129,6 +129,6 @@
     "type": "sprite-frame",
     "fixAlphaTransparencyArtifacts": true,
     "hasAlpha": true,
-    "redirect": "5081d0ba-7b32-44c4-b9b2-afb7c82b4d03@f9941"
+    "redirect": "29e8c3fb-93b9-4ed2-ae40-60d31f3a4ae4@f9941"
   }
 }

+ 11 - 0
assets/scene/script/MainScene.ts

@@ -41,4 +41,15 @@ export class MainScene extends Component {
     private hideTip(){
         this.node_tip.active = false;
     }
+    
+    public showByUrl(url: string){
+        let bundle = assetManager.getBundle(nav_info.bundle);
+        if(!bundle)return;
+        bundle.load(url, Prefab, (err:any, pre:Prefab)=>{
+            if(err)return;
+            let new_node = instantiate(pre);
+            new_node.setParent(find("Canvas"));
+            this.node_tip.setSiblingIndex(-1);
+        })
+    }
 }

+ 1 - 1
assets/scene/script/NavInfo.ts

@@ -8,7 +8,7 @@ import { MainScene } from "./MainScene";
 //?bundle&guild&pre&joinguild&match&111
 class NavInfo{
     public scene: MainScene = null;
-
+    
     public bundle = "pay";
     public pre = "pay";
     public is_test = false;

+ 0 - 21
assets/scene/script/NodeEx.ts

@@ -6,27 +6,6 @@ const nodeProto: any = Node.prototype;
 
 const temp_v3 = new Vec3();
 
-//需要刷新层级的时候再调用
-export function sortChildrenByZIndex(parent: Node): void {
-    if (!parent) {
-        return;
-    }
-
-    let children = parent.children.concat();
-    children.sort((a, b): number => {
-        if (a.zIndex == null) {
-            a.zIndex = 0;
-        }
-        if (b.zIndex == null) {
-            b.zIndex = 0;
-        }
-        return a.zIndex - b.zIndex;
-    });
-    let maxIndex = children.length;
-    for (const node of children) {
-        node.setSiblingIndex(maxIndex);
-    }
-}
 
 nodeProto._delaySort = function(){
     director.on(Director.EVENT_AFTER_UPDATE, this.sortByPosZ, this);

+ 1 - 0
assets/scene/script/UtilsPanel.ts

@@ -113,6 +113,7 @@ export class UtilsPanel {
             }
         })
     }
+    
 }
 
 var SC = null;

BIN
assets/scene/texture/white.png


+ 29 - 29
assets/pay/texture/24.png.meta → assets/scene/texture/white.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.25",
   "importer": "image",
   "imported": true,
-  "uuid": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde",
+  "uuid": "b4971c80-ee5c-442c-b5be-d23f83df0880",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde@6c48a",
-      "displayName": "24",
+      "uuid": "b4971c80-ee5c-442c-b5be-d23f83df0880@6c48a",
+      "displayName": "white",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde",
+        "imageUuidOrDatabaseUri": "b4971c80-ee5c-442c-b5be-d23f83df0880",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,8 +34,8 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde@f9941",
-      "displayName": "24",
+      "uuid": "b4971c80-ee5c-442c-b5be-d23f83df0880@f9941",
+      "displayName": "white",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 104,
-        "height": 97,
-        "rawWidth": 104,
-        "rawHeight": 97,
+        "width": 2,
+        "height": 2,
+        "rawWidth": 2,
+        "rawHeight": 2,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -52,
-            -48.5,
+            -1,
+            -1,
             0,
-            52,
-            -48.5,
+            1,
+            -1,
             0,
-            -52,
-            48.5,
+            -1,
+            1,
             0,
-            52,
-            48.5,
+            1,
+            1,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            97,
-            104,
-            97,
+            2,
+            2,
+            2,
             0,
             0,
-            104,
+            2,
             0
           ],
           "nuv": [
@@ -103,18 +103,18 @@
             1
           ],
           "minPos": [
-            -52,
-            -48.5,
+            -1,
+            -1,
             0
           ],
           "maxPos": [
-            52,
-            48.5,
+            1,
+            1,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde@6c48a",
+        "imageUuidOrDatabaseUri": "b4971c80-ee5c-442c-b5be-d23f83df0880@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.11",
@@ -128,7 +128,7 @@
   "userData": {
     "type": "sprite-frame",
     "fixAlphaTransparencyArtifacts": true,
-    "hasAlpha": true,
-    "redirect": "795dbc0e-3ddb-4e92-a3f2-f1fb963f7cde@f9941"
+    "hasAlpha": false,
+    "redirect": "b4971c80-ee5c-442c-b5be-d23f83df0880@f9941"
   }
 }

+ 1 - 1
settings/v2/packages/project.json

@@ -2,7 +2,7 @@
   "general": {
     "designResolution": {
       "width": 720,
-      "height": 1400
+      "height": 1280
     }
   }
 }