future před 1 rokem
rodič
revize
5a2dbee299

+ 2 - 2
assets/resources/ui/car_lib.prefab

@@ -2619,8 +2619,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 15.289999999999964,
+      "x": 10,
+      "y": -28.710000000000036,
       "z": 0
     },
     "_lrot": {

+ 12 - 12
assets/resources/ui/car_lib_list_item.prefab

@@ -565,8 +565,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
+      "x": 3,
+      "y": 14,
       "z": 0
     },
     "_lrot": {
@@ -616,7 +616,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 72,
+      "y": 64,
       "z": 0
     },
     "_lrot": {
@@ -752,7 +752,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -33,
+      "y": -41,
       "z": 0
     },
     "_lrot": {
@@ -911,7 +911,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": -2.25,
-      "y": -96,
+      "y": -104,
       "z": 0
     },
     "_lrot": {
@@ -1060,8 +1060,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 530,
-      "height": 369
+      "width": 502,
+      "height": 314
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1088,10 +1088,10 @@
     },
     "_alignFlags": 45,
     "_target": null,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
+    "_left": 17,
+    "_right": 11,
+    "_top": 13.5,
+    "_bottom": 41.5,
     "_horizontalCenter": 0,
     "_verticalCenter": 0,
     "_isAbsLeft": true,
@@ -1138,7 +1138,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,

+ 6 - 6
assets/resources/ui/home.prefab

@@ -4325,7 +4325,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -287.652,
+      "x": -277.652,
       "y": 186,
       "z": 0
     },
@@ -5091,7 +5091,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -27,
+      "x": -17,
       "y": 206,
       "z": 0
     },
@@ -5857,7 +5857,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 235.50099999999998,
+      "x": 245.50099999999998,
       "y": 186,
       "z": 0
     },
@@ -6750,7 +6750,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 438.325,
+      "x": 454.325,
       "y": 140,
       "z": 0
     },
@@ -9556,8 +9556,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -415.877,
-      "y": -21,
+      "x": -411.877,
+      "y": 7,
       "z": 0
     },
     "_lrot": {

+ 1 - 1
assets/script/ui/car_lib/car_lib_list_item.ts

@@ -30,7 +30,7 @@ export class car_lib_list_item extends Component {
         this.m_data = data
         this.m_index = index
         this.m_cb = cb
-        this.img_car.getComponent(Sprite).spriteFrame = imageCacheManager.getHomeCarImageById(data.id)
+        this.img_car.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.id)
         this.lab_car_name.getComponent(Label).string = data.name
         this.lab_car_score.getComponent(Label).string = data.unlock_points + '分'
         this.lab_suo_score.getComponent(Label).string = data.unlock_points + '分'

+ 2 - 1
assets/script/ui/car_lib/car_lib_top.ts

@@ -6,6 +6,7 @@ import { select_area } from '../select_area/select_area';
 import { area_item_data } from '../../data';
 import { uiManager } from '../../manager/uiManager';
 import { config } from '../../config';
+import { imageCacheManager } from '../../manager/imageCacheManager';
 const { ccclass, property } = _decorator;
 
 @ccclass('car_lib_top')
@@ -45,7 +46,7 @@ export class car_lib_top extends Component {
     }
 
     reloadUserCar() {
-        this.img_car.getComponent(Sprite).spriteFrame = GameManager.getUserDefaultCarSf()
+        this.img_car.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(userDataManager.user_car_list.default_car_id)
     }
 
     private onSelectArea(obj:select_area, data:area_item_data) {

binární
assets/texture/ui/home/img_top.png