future vor 1 Jahr
Ursprung
Commit
4e854459d4
38 geänderte Dateien mit 2078 neuen und 574 gelöschten Zeilen
  1. 213 0
      assets/resources/animation/tt_btn_gift.anim
  2. 13 0
      assets/resources/animation/tt_btn_gift.anim.meta
  3. 67 8
      assets/resources/ui/announcement.prefab
  4. 207 148
      assets/resources/ui/car_lib.prefab
  5. 67 8
      assets/resources/ui/gameplay_view.prefab
  6. 308 128
      assets/resources/ui/home.prefab
  7. 208 149
      assets/resources/ui/rank.prefab
  8. 67 8
      assets/resources/ui/select_area.prefab
  9. 69 10
      assets/resources/ui/setting.prefab
  10. 67 8
      assets/resources/ui/tips_view.prefab
  11. 70 11
      assets/resources/ui/unLock_view.prefab
  12. 67 8
      assets/resources/ui/user_info_view.prefab
  13. 38 4
      assets/script/GameManager.ts
  14. 7 0
      assets/script/config.ts
  15. 1 0
      assets/script/data.ts
  16. 2 0
      assets/script/main.ts
  17. 35 18
      assets/script/sdkUtil.ts
  18. 0 2
      assets/script/ui/home/home.ts
  19. 36 2
      assets/script/ui/home/home_bottom.ts
  20. 4 1
      assets/script/ui/home/home_bottom_countdown.ts
  21. 45 0
      assets/script/ui/home/home_tt_sidebar.ts
  22. 9 0
      assets/script/ui/home/home_tt_sidebar.ts.meta
  23. 10 4
      assets/script/ui/loading_view.ts
  24. BIN
      assets/texture/ui/home/img_top.png
  25. BIN
      assets/texture/ui/home/img_wuxiancishu.png
  26. BIN
      assets/texture/ui/home/img_wuxiancishu_bg.png
  27. 28 28
      assets/texture/ui/home/img_wuxiancishu_bg.png.meta
  28. BIN
      assets/texture/ui/home/img_wuxiancishu_text.png
  29. 134 0
      assets/texture/ui/home/img_wuxiancishu_text.png.meta
  30. 9 0
      assets/texture/ui/home/tt_sidebar.meta
  31. BIN
      assets/texture/ui/home/tt_sidebar/tt_sidebar_content.png
  32. 134 0
      assets/texture/ui/home/tt_sidebar/tt_sidebar_content.png.meta
  33. BIN
      assets/texture/ui/home/tt_sidebar/tt_sidebar_gift.png
  34. 134 0
      assets/texture/ui/home/tt_sidebar/tt_sidebar_gift.png.meta
  35. BIN
      assets/texture/ui/public/public_btn_bg.png
  36. BIN
      assets/texture/ui/public/public_popup_bg.png
  37. 29 29
      assets/texture/ui/public/public_popup_bg.png.meta
  38. BIN
      assets/texture/ui/rank/rank_my_bg.png

+ 213 - 0
assets/resources/animation/tt_btn_gift.anim

@@ -0,0 +1,213 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "tt_btn_gift",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 0.5,
+    "wrapMode": 22,
+    "enableTrsBlending": false,
+    "_duration": 0.3333333333333333,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 11
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.VectorTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channels": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 9
+      }
+    ],
+    "_nComponents": 3
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      "eulerAngles"
+    ]
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 4
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      0.3333333432674408
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 0,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 0,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 6
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      0.3333333432674408
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 0,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 0,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 8
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      0.3333333432674408
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 15,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": -15,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 10
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [],
+    "_values": [],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/resources/animation/tt_btn_gift.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "61b81f60-374d-4439-b907-55c80a38fd59",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "tt_btn_gift"
+  }
+}

+ 67 - 8
assets/resources/ui/announcement.prefab

@@ -30,18 +30,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 90
-      },
       {
         "__id__": 92
       },
       {
         "__id__": 94
+      },
+      {
+        "__id__": 96
       }
     ],
     "_prefab": {
-      "__id__": 96
+      "__id__": 98
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1890,10 +1890,13 @@
       },
       {
         "__id__": 87
+      },
+      {
+        "__id__": 89
       }
     ],
     "_prefab": {
-      "__id__": 89
+      "__id__": 91
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1997,6 +2000,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "f8qjluc/JL5LXkm+plmrE2"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 84
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 90
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d8egzr2BFK1qecSnnQeokH"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -2020,7 +2079,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 91
+      "__id__": 93
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -2048,7 +2107,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 93
+      "__id__": 95
     },
     "_alignFlags": 45,
     "_target": null,
@@ -2084,7 +2143,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 95
+      "__id__": 97
     },
     "btn_close": {
       "__id__": 84

Datei-Diff unterdrückt, da er zu groß ist
+ 207 - 148
assets/resources/ui/car_lib.prefab


+ 67 - 8
assets/resources/ui/gameplay_view.prefab

@@ -30,18 +30,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 84
-      },
       {
         "__id__": 86
       },
       {
         "__id__": 88
+      },
+      {
+        "__id__": 90
       }
     ],
     "_prefab": {
-      "__id__": 90
+      "__id__": 92
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1754,10 +1754,13 @@
       },
       {
         "__id__": 81
+      },
+      {
+        "__id__": 83
       }
     ],
     "_prefab": {
-      "__id__": 83
+      "__id__": 85
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1861,6 +1864,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "9923RK/ElNu5CXFQfPTB4t"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 78
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 84
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e3vdc+Q1ZNnIggakDNzmAn"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -1884,7 +1943,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 85
+      "__id__": 87
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1912,7 +1971,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 87
+      "__id__": 89
     },
     "_alignFlags": 45,
     "_target": null,
@@ -1948,7 +2007,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 89
+      "__id__": 91
     },
     "btn_close": {
       "__id__": 78

Datei-Diff unterdrückt, da er zu groß ist
+ 308 - 128
assets/resources/ui/home.prefab


Datei-Diff unterdrückt, da er zu groß ist
+ 208 - 149
assets/resources/ui/rank.prefab


+ 67 - 8
assets/resources/ui/select_area.prefab

@@ -33,18 +33,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 134
-      },
       {
         "__id__": 136
       },
       {
         "__id__": 138
+      },
+      {
+        "__id__": 140
       }
     ],
     "_prefab": {
-      "__id__": 140
+      "__id__": 142
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -3062,10 +3062,13 @@
       },
       {
         "__id__": 131
+      },
+      {
+        "__id__": 133
       }
     ],
     "_prefab": {
-      "__id__": 133
+      "__id__": 135
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -3169,6 +3172,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "66x77UaYtPD6intavpujNm"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 128
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 134
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "06DYMW5bJAoK+5o510MioM"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -3192,7 +3251,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 135
+      "__id__": 137
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -3220,7 +3279,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 137
+      "__id__": 139
     },
     "_alignFlags": 45,
     "_target": null,
@@ -3256,7 +3315,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 139
+      "__id__": 141
     },
     "btn_close": {
       "__id__": 128

+ 69 - 10
assets/resources/ui/setting.prefab

@@ -30,18 +30,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 100
-      },
       {
         "__id__": 102
       },
       {
         "__id__": 104
+      },
+      {
+        "__id__": 106
       }
     ],
     "_prefab": {
-      "__id__": 106
+      "__id__": 108
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -140,7 +140,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2293,10 +2293,13 @@
       },
       {
         "__id__": 97
+      },
+      {
+        "__id__": 99
       }
     ],
     "_prefab": {
-      "__id__": 99
+      "__id__": 101
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2400,6 +2403,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "69HK3J8zNEkIWBvFmvyB4s"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 94
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 100
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "73CtXXmm5I8YfoJsbZkorN"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -2423,12 +2482,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 101
+      "__id__": 103
     },
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2451,7 +2510,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 103
+      "__id__": 105
     },
     "_alignFlags": 45,
     "_target": null,
@@ -2487,7 +2546,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 105
+      "__id__": 107
     },
     "btn_close": {
       "__id__": 94

+ 67 - 8
assets/resources/ui/tips_view.prefab

@@ -30,18 +30,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 40
-      },
       {
         "__id__": 42
       },
       {
         "__id__": 44
+      },
+      {
+        "__id__": 46
       }
     ],
     "_prefab": {
-      "__id__": 46
+      "__id__": 48
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -817,10 +817,13 @@
       },
       {
         "__id__": 37
+      },
+      {
+        "__id__": 39
       }
     ],
     "_prefab": {
-      "__id__": 39
+      "__id__": 41
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -924,6 +927,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "0009vpKTJE+pWmLIsFEqyI"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 34
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 40
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "f4/EPbw8JAyYSRf+l5WZsw"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -947,7 +1006,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 41
+      "__id__": 43
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -975,7 +1034,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 43
+      "__id__": 45
     },
     "_alignFlags": 45,
     "_target": null,
@@ -1011,7 +1070,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 45
+      "__id__": 47
     },
     "btn_close": {
       "__id__": 34

+ 70 - 11
assets/resources/ui/unLock_view.prefab

@@ -30,9 +30,6 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 74
-      },
       {
         "__id__": 76
       },
@@ -41,10 +38,13 @@
       },
       {
         "__id__": 80
+      },
+      {
+        "__id__": 82
       }
     ],
     "_prefab": {
-      "__id__": 82
+      "__id__": 84
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -143,7 +143,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1919.9999999999998
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1668,10 +1668,13 @@
       },
       {
         "__id__": 71
+      },
+      {
+        "__id__": 73
       }
     ],
     "_prefab": {
-      "__id__": 73
+      "__id__": 75
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1775,6 +1778,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "28ptzByDFIip0qFaJ4PhhD"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 68
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 74
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "bbBOI4cT5GRpYmOBXndMzv"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -1798,12 +1857,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 75
+      "__id__": 77
     },
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1919.9999999999998
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1826,7 +1885,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 77
+      "__id__": 79
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1868,7 +1927,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 79
+      "__id__": 81
     },
     "_alignFlags": 45,
     "_target": null,
@@ -1904,7 +1963,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 81
+      "__id__": 83
     },
     "btn_close": {
       "__id__": 68

+ 67 - 8
assets/resources/ui/user_info_view.prefab

@@ -30,18 +30,18 @@
     ],
     "_active": true,
     "_components": [
-      {
-        "__id__": 102
-      },
       {
         "__id__": 104
       },
       {
         "__id__": 106
+      },
+      {
+        "__id__": 108
       }
     ],
     "_prefab": {
-      "__id__": 108
+      "__id__": 110
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2338,10 +2338,13 @@
       },
       {
         "__id__": 99
+      },
+      {
+        "__id__": 101
       }
     ],
     "_prefab": {
-      "__id__": 101
+      "__id__": 103
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2445,6 +2448,62 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "c4OwnU7GNOi66xXRmsf5/a"
   },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 96
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 102
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 0.9,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7bgQqjnZBI3pBBsQRql73u"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -2468,7 +2527,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 103
+      "__id__": 105
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -2496,7 +2555,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 105
+      "__id__": 107
     },
     "_alignFlags": 45,
     "_target": null,
@@ -2532,7 +2591,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 107
+      "__id__": 109
     },
     "btn_close": {
       "__id__": 96

+ 38 - 4
assets/script/GameManager.ts

@@ -5,6 +5,7 @@ import { http } from './http';
 import { imageCacheManager } from './manager/imageCacheManager';
 import { userDataManager } from './manager/userDataManager';
 import { SdkUtil } from './sdkUtil';
+import { uiManager } from './manager/uiManager';
 const { ccclass, property } = _decorator;
 
 @ccclass('GameManager')
@@ -39,7 +40,7 @@ export class GameManager extends Component {
         sys.localStorage.setItem(config.SETTING_DATA, JSON.stringify(data));
     }
 
-    //获取广播
+    //请求广播
     public static requestGuangbo(cb=null) {
         http.get(config.STATIC_API.msg, (err,d)=>{
             if(!err){
@@ -54,7 +55,7 @@ export class GameManager extends Component {
         })
     }
 
-    //获取用户车列表
+    //请求用户车列表
     public static requestUserCarList(cb=null) {
         http.post(config.API.user_car_list,null,(err,d)=>{
             if(!err){
@@ -69,7 +70,7 @@ export class GameManager extends Component {
         },'GET')
     }
 
-    // stype 1:注册 2:重新设置
+    // 请求用户注册/设置地区 stype 1:注册 2:重新设置
     public static requestUserSetRegion(region_id:number,stype:number,cb) {
         let opt = {'region_id':region_id, 'stype':stype}
         http.post(config.API.user_set_region, opt, (err,d)=>{
@@ -82,7 +83,7 @@ export class GameManager extends Component {
         })
     }
     
-    // stype 0:全国 1:省 2:市
+    // 请求我的排行 stype 0:全国 1:省 2:市
     public static requestMineRank(stype:number, cb) {
         let opt = {'stype': stype}
         http.post(config.API.user_ranking, opt, (err,d)=>{
@@ -99,6 +100,7 @@ export class GameManager extends Component {
         })
     }
 
+    // 请求排行列表
     public static requestRankList(region_id:number, cb) {
         http.get(config.STATIC_API.rankings(region_id),(err,d)=>{
             if(!err){
@@ -114,6 +116,38 @@ export class GameManager extends Component {
             }
         })
     }
+
+    // 请求tt侧边栏用户奖励
+    public static requestTTSidebarUserReward(status=config.USER_TT_SIDEBAR_REWARD.GET, success_cb, fail_cb=null) {
+        if(sys.platform != sys.Platform.BYTEDANCE_MINI_GAME) {
+            success_cb(null)
+            return
+        }
+        if(status != config.USER_TT_SIDEBAR_REWARD.GET) {
+            uiManager.Instance().showLoading()
+        }
+        http.post(config.API.unlock_number_status,{'stype':status}, (err,data)=>{
+            if(status!= config.USER_TT_SIDEBAR_REWARD.GET) {
+                uiManager.Instance().hideLoading()
+            }
+            if(!err) {
+                let _data = JSON.parse(data)
+                if(_data.code==config.status.SUCCESS) {
+                    if(success_cb) {
+                        success_cb(_data.content)
+                    }
+                } else {
+                    if(fail_cb) {
+                        fail_cb()
+                    }
+                }
+            } else {
+                if(fail_cb) {
+                    fail_cb()
+                }
+            }
+        })
+    }
 }
 
 

+ 7 - 0
assets/script/config.ts

@@ -16,6 +16,7 @@ export class config  {
         user_car_list : "/snake/user/user_car_list",
         user_set_region: "/snake/user/set_region",
         user_set_default_car_id: "/snake/user/set_default_car_id",
+        unlock_number_status: "/snake/user/unlock_number_status",
     }
 
 
@@ -126,6 +127,12 @@ export class config  {
         GAME_RELIFE_SHARE_TITLE:"分享游戏获得复活",          //游戏分享复活
         GAME_INFINITE_DEGREE_VIDEO:"c7lih7for4j2vjmllv",  //无限次数
     }
+
+    public static USER_TT_SIDEBAR_REWARD = {
+        GET: 0,       //获取
+        SYNC: 1,      //同步
+        RECEIVE: 2,   //领取
+    }
 }
 
 

+ 1 - 0
assets/script/data.ts

@@ -58,6 +58,7 @@ export class userData{
     public province_name:string = ""
     public city_name:string = ""
     public update_region_status:number = 1 //1:本周已经设置 0:本周未设置
+    public tt_sidebar_reward_status:number = 0 //1:已经领取 0:未领取
 }
 
 export class rankData{

+ 2 - 0
assets/script/main.ts

@@ -4,6 +4,7 @@ import { tools } from './tools';
 import { uiManager } from './manager/uiManager';
 import { home } from './ui/home/home';
 import { loading_view } from './ui/loading_view';
+import { SdkUtil } from './sdkUtil';
 const { ccclass, property } = _decorator;
 
 @ccclass('main')
@@ -15,6 +16,7 @@ export class main extends Component {
     protected start(): void {
         // game.frameRate = 60;
         // PhysicsSystem2D.instance.fixedTimeStep = 1 / 60;
+        SdkUtil.init()
         tools.init(this.node)
         this.home_node.removeAllChildren()
         uiManager.Instance().init(this.ui_parent,this.laoding_view_wait,this.send_msg_wait)

+ 35 - 18
assets/script/sdkUtil.ts

@@ -33,9 +33,9 @@ export class SdkUtil {
     //------------------------------  公共  ------------------------------//
 
     public static init() {
-        // this.ttGetSystemInfo(()=> {
-        //     this.ttRegisterInfo()
-        // })
+        this.ttGetSystemInfo(()=> {
+            this.ttRegisterInfo()
+        })
     }
 
     // 苹果手机是否有灵动岛
@@ -160,6 +160,22 @@ export class SdkUtil {
         SdkUtil.videoAd.load()
     }
 
+    //------------------------------  抖音相关  ------------------------------//
+
+    // 抖音获取系统信息
+    public static ttGetSystemInfo(callback) {
+        if(sys.platform == sys.Platform.BYTEDANCE_MINI_GAME) {
+            tt.getSystemInfo({
+                success:(res) => {
+                    // console.log('tt.getSystemInfo=',res)
+                    // appName: "Douyin" appName: "douyin_lite"
+                    SdkUtil.tt_systemInfo = res
+                    callback()
+                }
+            })
+        }
+    }
+
     // 抖音添加快捷键(目前仅支持:抖音(Douyin) 和 抖音极速版(douyin_lite))
     public static ttAddShortcut(onSuccess:Function = null, onFail:Function = null) {
         if(sys.platform == sys.Platform.BYTEDANCE_MINI_GAME) {
@@ -349,38 +365,39 @@ export class SdkUtil {
         // })
     }
 
-    public static getUserInfo(call){
+    //------------------------------  三方分别处理相关  ------------------------------//
+    public static login(call){
         if(sys.platform == sys.Platform.BYTEDANCE_MINI_GAME) {
-            tt.getUserInfo({
-                // withCredentials: true,
-                // withRealNameAuthenticationInfo: true,
+            tt.login({
+                force: true,
                 success(res) {
-                  console.log(`getUserInfo 调用成功`, res.userInfo);
-                  call(res.userInfo)
+                  console.log(`login 调用成功${res.code} ${res.anonymousCode}`);
+                  call({"code":res.code,"anonymousCode":res.anonymousCode})
                 },
                 fail(res) {
-                  console.log(`getUserInfo 调用失败`, res.errMsg);
+                  console.log(`login 调用失败`);
+                  call(null)
                 },
               });
+              
         }else{
             call(null)
         }
     }
 
-    public static login(call){
+    public static getUserInfo(call){
         if(sys.platform == sys.Platform.BYTEDANCE_MINI_GAME) {
-            tt.login({
-                force: true,
+            tt.getUserInfo({
+                // withCredentials: true,
+                // withRealNameAuthenticationInfo: true,
                 success(res) {
-                  console.log(`login 调用成功${res.code} ${res.anonymousCode}`);
-                  call({"code":res.code,"anonymousCode":res.anonymousCode})
+                  console.log(`getUserInfo 调用成功`, res.userInfo);
+                  call(res.userInfo)
                 },
                 fail(res) {
-                  console.log(`login 调用失败`);
-                  call(null)
+                  console.log(`getUserInfo 调用失败`, res.errMsg);
                 },
               });
-              
         }else{
             call(null)
         }

+ 0 - 2
assets/script/ui/home/home.ts

@@ -7,9 +7,7 @@ import { tools } from '../../tools';
 import { ClientEvent } from '../../lib/clientEvent';
 import { config } from '../../config';
 import { userDataManager } from '../../manager/userDataManager';
-import { dataManager } from '../../manager/dataManager';
 import { user_results } from '../../data';
-import { GameManager } from '../../GameManager';
 const { ccclass, property } = _decorator;
 
 @ccclass('home')

+ 36 - 2
assets/script/ui/home/home_bottom.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, Label, Node, Sprite, SpriteFrame } from 'cc';
+import { _decorator, Component, Label, Node, Animation } from 'cc';
 import { uiManager } from '../../manager/uiManager';
 import { config } from '../../config';
 import { user_info_view } from '../user_info_view';
@@ -9,6 +9,8 @@ import { home_honor } from './home_honor';
 import { home_bottom_countdown } from './home_bottom_countdown';
 import { unLock_view } from '../unLock_view';
 import { userDataManager } from '../../manager/userDataManager';
+import { home_tt_sidebar } from './home_tt_sidebar';
+import { SdkUtil } from '../../sdkUtil';
 const { ccclass, property } = _decorator;
 
 @ccclass('home_bottom')
@@ -22,6 +24,8 @@ export class home_bottom extends Component {
     @property(Node) lab_week_score:Node = null
     @property(Node) btn_wuxiancishu:Node = null
     @property(Node) countdown_node:Node = null
+    @property(Node) tt_btn_gift:Node = null
+    @property(Node) tt_sidebar:Node = null
 
     start() {
         uiManager.Instance().onButtonListen(this.btn_wenhao, ()=>{
@@ -43,6 +47,9 @@ export class home_bottom extends Component {
                 })
             })
         })
+        uiManager.Instance().onButtonListen(this.tt_btn_gift, ()=>{
+            this.onClickTTLihe()
+        })
     }
 
     public init() {
@@ -50,6 +57,7 @@ export class home_bottom extends Component {
         this.reloadHonorData()
         this.reloadCountdown()
         this.reloadCountryRankData()
+        this.reloadTTSidebar()
     }
 
     public reloadWeekScore() {
@@ -61,7 +69,9 @@ export class home_bottom extends Component {
     }
 
     private reloadCountdown() {
-        this.countdown_node.getComponent(home_bottom_countdown).startTime()
+        this.countdown_node.getComponent(home_bottom_countdown).startTime((is_active)=>{
+            this.btn_wuxiancishu.active = !is_active
+        })
     }
     
     public reloadCountryRankData(){
@@ -90,6 +100,30 @@ export class home_bottom extends Component {
             node.getComponent(user_info_view).initView(data)
         })
     }
+
+    private reloadTTSidebar() {
+        this.tt_btn_gift.active = false
+        if(SdkUtil.ttCheckSceneShowRewards()==false || userDataManager.user_data.tt_sidebar_reward_status==1) {
+            return
+        }
+        this.tt_btn_gift.active = true
+        this.tt_btn_gift.getComponent(Animation).play()
+    }
+
+    private onClickTTLihe() {
+        let isToEnterFromSidebar = SdkUtil.ttCheckToEnterFromSidebar()
+        this.tt_sidebar.getComponent(home_tt_sidebar).show(isToEnterFromSidebar, (r:home_tt_sidebar)=>{
+            SdkUtil.ttNavToSidebarScene()
+            r.close()
+        },(r:home_tt_sidebar)=>{
+            GameManager.requestTTSidebarUserReward(config.USER_TT_SIDEBAR_REWARD.RECEIVE, (d_content)=>{
+                userDataManager.user_data.tt_sidebar_reward_status = d_content.status
+                this.tt_btn_gift.active = false
+                this.tt_btn_gift.getComponent(Animation).stop()
+                r.close()
+            })
+        })
+    }
 }
 
 

+ 4 - 1
assets/script/ui/home/home_bottom_countdown.ts

@@ -7,15 +7,17 @@ const { ccclass, property } = _decorator;
 export class home_bottom_countdown extends Component {
     @property(Node) lab_countdown_time:Node = null
     private seconds:number = 0
-    startTime() {
+    startTime(active_cb) {
         this.seconds = userDataManager.getUserFreeAdsTime()
         if(this.seconds==-1) {
             this.unscheduleAllCallbacks()
             this.node.active = false
+            if(active_cb){ active_cb(false) }
             return
         }
 
         this.node.active = true
+        if(active_cb){ active_cb(true) }
         this.lab_countdown_time.getComponent(Label).string = Util.formatTimeForSecond(this.seconds)
         this.unscheduleAllCallbacks()
         this.schedule(()=>{
@@ -25,6 +27,7 @@ export class home_bottom_countdown extends Component {
                 userDataManager.saveUserFreeAdsLookVideoCount(0)
                 this.unscheduleAllCallbacks()
                 this.node.active = false
+                if(active_cb){ active_cb(false) }
                 return
             }
             this.lab_countdown_time.getComponent(Label).string = Util.formatTimeForSecond(this.seconds)

+ 45 - 0
assets/script/ui/home/home_tt_sidebar.ts

@@ -0,0 +1,45 @@
+import { _decorator, Component, Node } from 'cc';
+import { base_ui } from '../../fw/base_ui';
+const { ccclass, property } = _decorator;
+
+@ccclass('home_tt_sidebar')
+export class home_tt_sidebar extends base_ui {
+    @property(Node) btn_close:Node = null
+    @property(Node) btn_lqjl:Node = null
+    @property(Node) btn_go_sidebar:Node = null
+    private m_go_sidebar_cb = null
+    private m_lqjl_cb = null
+    start() {
+        this.onButtonListen(this.btn_close, ()=>{
+            this.close()
+        })
+        this.onButtonListen(this.btn_go_sidebar, ()=>{
+            if(this.m_go_sidebar_cb!=null) {
+                this.m_go_sidebar_cb(this)
+            }
+        })
+        this.onButtonListen(this.btn_lqjl,()=>{
+            if(this.m_lqjl_cb!=null) {
+                this.m_lqjl_cb(this)
+            }
+        })
+    }
+
+    show(isToEnterFromSidebar:boolean, go_sidebar_cb, lqjl_cb) {
+        this.node.active = true
+        this.m_go_sidebar_cb = go_sidebar_cb
+        this.m_lqjl_cb = lqjl_cb
+        if(isToEnterFromSidebar) {
+            this.btn_lqjl.active = true
+            this.btn_go_sidebar.active = false
+        } else {
+            this.btn_lqjl.active = false
+            this.btn_go_sidebar.active = true
+        }
+    }
+
+    close() {
+        this.node.active = false
+    }
+}
+

+ 9 - 0
assets/script/ui/home/home_tt_sidebar.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "51f5437f-695e-4a2f-8ce8-183e1566f482",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 10 - 4
assets/script/ui/loading_view.ts

@@ -112,10 +112,16 @@ export class loading_view extends Component {
                         let nd = JSON.parse(d)
                         if(nd.code === config.status.SUCCESS){
                             userDataManager.user_data = nd.content
-                            // console.log('user_data=',userDataManager.user_data)
-                            if(login_finish_cb!=null){
-                                login_finish_cb()
-                            }
+                            console.log('用户信息=',userDataManager.user_data)
+                            GameManager.requestTTSidebarUserReward(config.USER_TT_SIDEBAR_REWARD.GET, (d_content)=>{
+                                userDataManager.user_data.tt_sidebar_reward_status = 0
+                                if(data!=null) {
+                                    userDataManager.user_data.tt_sidebar_reward_status = d_content.status
+                                } 
+                                if(login_finish_cb!=null){
+                                    login_finish_cb()
+                                }
+                            })
                         }
                     }
                 })

BIN
assets/texture/ui/home/img_top.png


BIN
assets/texture/ui/home/img_wuxiancishu.png


BIN
assets/texture/ui/home/img_wuxiancishu_bg.png


+ 28 - 28
assets/texture/ui/home/img_wuxiancishu.png.meta → assets/texture/ui/home/img_wuxiancishu_bg.png.meta

@@ -2,7 +2,7 @@
   "ver": "1.0.26",
   "importer": "image",
   "imported": true,
-  "uuid": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b",
+  "uuid": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b",
   "files": [
     ".json",
     ".png"
@@ -10,14 +10,14 @@
   "subMetas": {
     "6c48a": {
       "importer": "texture",
-      "uuid": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b@6c48a",
-      "displayName": "img_wuxiancishu",
+      "uuid": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b@6c48a",
+      "displayName": "img_wuxiancishu_bg",
       "id": "6c48a",
       "name": "texture",
       "userData": {
         "wrapModeS": "clamp-to-edge",
         "wrapModeT": "clamp-to-edge",
-        "imageUuidOrDatabaseUri": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b",
+        "imageUuidOrDatabaseUri": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b",
         "isUuid": true,
         "visible": false,
         "minfilter": "linear",
@@ -34,8 +34,8 @@
     },
     "f9941": {
       "importer": "sprite-frame",
-      "uuid": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b@f9941",
-      "displayName": "img_wuxiancishu",
+      "uuid": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b@f9941",
+      "displayName": "img_wuxiancishu_bg",
       "id": "f9941",
       "name": "spriteFrame",
       "userData": {
@@ -46,10 +46,10 @@
         "offsetY": 0,
         "trimX": 0,
         "trimY": 0,
-        "width": 1062,
-        "height": 85,
-        "rawWidth": 1062,
-        "rawHeight": 85,
+        "width": 1052,
+        "height": 87,
+        "rawWidth": 1052,
+        "rawHeight": 87,
         "borderTop": 0,
         "borderBottom": 0,
         "borderLeft": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -531,
-            -42.5,
+            -526,
+            -43.5,
             0,
-            531,
-            -42.5,
+            526,
+            -43.5,
             0,
-            -531,
-            42.5,
+            -526,
+            43.5,
             0,
-            531,
-            42.5,
+            526,
+            43.5,
             0
           ],
           "indexes": [
@@ -84,12 +84,12 @@
           ],
           "uv": [
             0,
-            85,
-            1062,
-            85,
+            87,
+            1052,
+            87,
             0,
             0,
-            1062,
+            1052,
             0
           ],
           "nuv": [
@@ -103,18 +103,18 @@
             1
           ],
           "minPos": [
-            -531,
-            -42.5,
+            -526,
+            -43.5,
             0
           ],
           "maxPos": [
-            531,
-            42.5,
+            526,
+            43.5,
             0
           ]
         },
         "isUuid": true,
-        "imageUuidOrDatabaseUri": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b@6c48a",
+        "imageUuidOrDatabaseUri": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b@6c48a",
         "atlasUuid": ""
       },
       "ver": "1.0.12",
@@ -129,6 +129,6 @@
     "type": "sprite-frame",
     "hasAlpha": true,
     "fixAlphaTransparencyArtifacts": false,
-    "redirect": "55bedd04-0ef6-4725-b16f-077a1d6b7e6b@f9941"
+    "redirect": "60d83e81-f85a-4d5a-9a41-9145d48fcc5b@f9941"
   }
 }

BIN
assets/texture/ui/home/img_wuxiancishu_text.png


+ 134 - 0
assets/texture/ui/home/img_wuxiancishu_text.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "91035afd-1a53-438d-8eac-dd439426c277",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "91035afd-1a53-438d-8eac-dd439426c277@6c48a",
+      "displayName": "img_wuxiancishu_text",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "91035afd-1a53-438d-8eac-dd439426c277",
+        "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": "91035afd-1a53-438d-8eac-dd439426c277@f9941",
+      "displayName": "img_wuxiancishu_text",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 178,
+        "height": 28,
+        "rawWidth": 178,
+        "rawHeight": 28,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -89,
+            -14,
+            0,
+            89,
+            -14,
+            0,
+            -89,
+            14,
+            0,
+            89,
+            14,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            28,
+            178,
+            28,
+            0,
+            0,
+            178,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -89,
+            -14,
+            0
+          ],
+          "maxPos": [
+            89,
+            14,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "91035afd-1a53-438d-8eac-dd439426c277@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "91035afd-1a53-438d-8eac-dd439426c277@f9941"
+  }
+}

+ 9 - 0
assets/texture/ui/home/tt_sidebar.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "16cfbe82-9d28-4828-8305-d11ff5cae43c",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

BIN
assets/texture/ui/home/tt_sidebar/tt_sidebar_content.png


+ 134 - 0
assets/texture/ui/home/tt_sidebar/tt_sidebar_content.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055@6c48a",
+      "displayName": "tt_sidebar_content",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055",
+        "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": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055@f9941",
+      "displayName": "tt_sidebar_content",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 60,
+        "offsetY": 0,
+        "trimX": 122,
+        "trimY": 0,
+        "width": 964,
+        "height": 1481,
+        "rawWidth": 1088,
+        "rawHeight": 1481,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -482,
+            -740.5,
+            0,
+            482,
+            -740.5,
+            0,
+            -482,
+            740.5,
+            0,
+            482,
+            740.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            122,
+            1481,
+            1086,
+            1481,
+            122,
+            0,
+            1086,
+            0
+          ],
+          "nuv": [
+            0.11213235294117647,
+            0,
+            0.9981617647058824,
+            0,
+            0.11213235294117647,
+            1,
+            0.9981617647058824,
+            1
+          ],
+          "minPos": [
+            -482,
+            -740.5,
+            0
+          ],
+          "maxPos": [
+            482,
+            740.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "bfa6b29c-96d9-4bdd-9051-5e5a3e456055@f9941"
+  }
+}

BIN
assets/texture/ui/home/tt_sidebar/tt_sidebar_gift.png


+ 134 - 0
assets/texture/ui/home/tt_sidebar/tt_sidebar_gift.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "91541bef-458a-4bd6-9af0-5e9e75a1737f",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "91541bef-458a-4bd6-9af0-5e9e75a1737f@6c48a",
+      "displayName": "tt_sidebar_gift",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "91541bef-458a-4bd6-9af0-5e9e75a1737f",
+        "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": "91541bef-458a-4bd6-9af0-5e9e75a1737f@f9941",
+      "displayName": "tt_sidebar_gift",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 113,
+        "height": 124,
+        "rawWidth": 113,
+        "rawHeight": 124,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -56.5,
+            -62,
+            0,
+            56.5,
+            -62,
+            0,
+            -56.5,
+            62,
+            0,
+            56.5,
+            62,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            124,
+            113,
+            124,
+            0,
+            0,
+            113,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -56.5,
+            -62,
+            0
+          ],
+          "maxPos": [
+            56.5,
+            62,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "91541bef-458a-4bd6-9af0-5e9e75a1737f@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "91541bef-458a-4bd6-9af0-5e9e75a1737f@f9941"
+  }
+}

BIN
assets/texture/ui/public/public_btn_bg.png


BIN
assets/texture/ui/public/public_popup_bg.png


+ 29 - 29
assets/texture/ui/public/public_popup_bg.png.meta

@@ -42,12 +42,12 @@
         "trimType": "auto",
         "trimThreshold": 1,
         "rotated": false,
-        "offsetX": 0,
-        "offsetY": 1,
+        "offsetX": -8.5,
+        "offsetY": -16,
         "trimX": 0,
-        "trimY": 0,
-        "width": 980,
-        "height": 1462,
+        "trimY": 48,
+        "width": 963,
+        "height": 1400,
         "rawWidth": 980,
         "rawHeight": 1464,
         "borderTop": 0,
@@ -61,17 +61,17 @@
         "meshType": 0,
         "vertices": {
           "rawPosition": [
-            -490,
-            -731,
+            -481.5,
+            -700,
             0,
-            490,
-            -731,
+            481.5,
+            -700,
             0,
-            -490,
-            731,
+            -481.5,
+            700,
             0,
-            490,
-            731,
+            481.5,
+            700,
             0
           ],
           "indexes": [
@@ -84,32 +84,32 @@
           ],
           "uv": [
             0,
-            1464,
-            980,
-            1464,
+            1416,
+            963,
+            1416,
             0,
-            2,
-            980,
-            2
+            16,
+            963,
+            16
           ],
           "nuv": [
             0,
-            0.001366120218579235,
-            1,
-            0.001366120218579235,
+            0.01092896174863388,
+            0.9826530612244898,
+            0.01092896174863388,
             0,
-            1,
-            1,
-            1
+            0.9672131147540983,
+            0.9826530612244898,
+            0.9672131147540983
           ],
           "minPos": [
-            -490,
-            -731,
+            -481.5,
+            -700,
             0
           ],
           "maxPos": [
-            490,
-            731,
+            481.5,
+            700,
             0
           ]
         },

BIN
assets/texture/ui/rank/rank_my_bg.png


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.