future 1 年間 前
コミット
b8a21af28e

+ 3 - 0
assets/resources/ui/home.prefab

@@ -4298,6 +4298,9 @@
     "img_avatar": {
       "__id__": 25
     },
+    "img_avatar_border": {
+      "__id__": 40
+    },
     "lab_nickname": {
       "__id__": 52
     },

+ 21 - 9
assets/resources/ui/rank.prefab

@@ -112,7 +112,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 795,
+      "y": 794.9999999999999,
       "z": 0
     },
     "_lrot": {
@@ -534,7 +534,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0.7092285029295908,
-      "y": 569.5,
+      "y": 569.4999999999999,
       "z": 0
     },
     "_lrot": {
@@ -1956,7 +1956,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 70,
+      "y": 69.99999999999989,
       "z": 0
     },
     "_lrot": {
@@ -6998,6 +6998,9 @@
     "one_img_avatar": {
       "__id__": 97
     },
+    "one_img_avatar_border": {
+      "__id__": 112
+    },
     "one_lab_score": {
       "__id__": 131
     },
@@ -7019,6 +7022,9 @@
     "two_img_avatar": {
       "__id__": 163
     },
+    "two_img_avatar_border": {
+      "__id__": 178
+    },
     "two_lab_score": {
       "__id__": 195
     },
@@ -7040,6 +7046,9 @@
     "three_img_avatar": {
       "__id__": 227
     },
+    "three_img_avatar_border": {
+      "__id__": 242
+    },
     "three_lab_score": {
       "__id__": 259
     },
@@ -7586,7 +7595,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 92.5,
+      "y": 92.49999999999989,
       "z": 0
     },
     "_lrot": {
@@ -7627,7 +7636,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1000,
-      "height": 185
+      "height": 184.99999999999977
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -7900,7 +7909,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 185
+      "height": 184.99999999999977
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -8019,7 +8028,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1140
+      "height": 1139.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -8157,7 +8166,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -810.5,
+      "y": -810.4999999999999,
       "z": 0
     },
     "_lrot": {
@@ -10933,6 +10942,9 @@
     "img_avatar": {
       "__id__": 408
     },
+    "img_avatar_border": {
+      "__id__": 423
+    },
     "lab_nickname": {
       "__id__": 436
     },
@@ -11181,7 +11193,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 3 - 0
assets/resources/ui/rank_list_item.prefab

@@ -1789,6 +1789,9 @@
     "img_avatar": {
       "__id__": 28
     },
+    "img_avatar_border": {
+      "__id__": 43
+    },
     "lab_nickname": {
       "__id__": 52
     },

+ 3 - 3
assets/resources/ui/user_info_view.prefab

@@ -146,7 +146,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2107,7 +2107,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -540.276,
+      "y": -549.276,
       "z": 0
     },
     "_lrot": {
@@ -2538,7 +2538,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 1 - 0
assets/script/ui/home/home_top.ts

@@ -12,6 +12,7 @@ const { ccclass, property } = _decorator;
 export class home_top extends Component {
     @property(Node) lab_region:Node = null
     @property(Node) img_avatar:Node = null
+    @property(Node) img_avatar_border:Node = null
     @property(Node) lab_nickname:Node = null
     @property(Node) btn_car_lib:Node = null
     @property(Node) lab_car_pai:Node = null

+ 1 - 0
assets/script/ui/rank/rank_list_item.ts

@@ -12,6 +12,7 @@ const { ccclass, property } = _decorator;
 export class rank_list_item extends base_ui {
     @property(Node) lab_number:Node = null;
     @property(Node) img_avatar:Node = null;
+    @property(Node) img_avatar_border:Node = null;
     @property(Node) lab_nickname:Node = null;
     @property(Node) lab_score:Node = null;
     @property(Node) img_car:Node = null;

+ 13 - 0
assets/script/ui/rank/rank_list_top.ts

@@ -13,6 +13,7 @@ export class rank_list_top extends base_ui {
     @property(Node) one_node = null;
     @property(Node) one_lab_name:Node = null;
     @property(Node) one_img_avatar:Node = null;
+    @property(Node) one_img_avatar_border:Node = null;
     @property(Node) one_lab_score:Node = null;
     @property(Node) one_img_car:Node = null;
     @property(Node) one_region_bg:Node = null;
@@ -21,6 +22,7 @@ export class rank_list_top extends base_ui {
     @property(Node) two_node = null;
     @property(Node) two_lab_name:Node = null;
     @property(Node) two_img_avatar:Node = null;
+    @property(Node) two_img_avatar_border:Node = null;
     @property(Node) two_lab_score:Node = null;
     @property(Node) two_img_car:Node = null;
     @property(Node) two_region_bg:Node = null;
@@ -29,6 +31,7 @@ export class rank_list_top extends base_ui {
     @property(Node) three_node = null;
     @property(Node) three_lab_name:Node = null;
     @property(Node) three_img_avatar:Node = null;
+    @property(Node) three_img_avatar_border:Node = null;
     @property(Node) three_lab_score:Node = null;
     @property(Node) three_img_car:Node = null;
     @property(Node) three_region_bg:Node = null;
@@ -56,6 +59,7 @@ export class rank_list_top extends base_ui {
             this.m_one_data = data_list[0]
             this.setLabName(this.one_lab_name, this.m_one_data,7)
             this.setImgAvatar(this.one_img_avatar, this.m_one_data)
+            this.setImgAvatarBorder(this.one_img_avatar_border, this.m_one_data)
             this.setLabScore(this.one_lab_score, this.m_one_data)
             this.setImgCar(this.one_img_car, this.m_one_data)
             this.setRegion(this.one_region_bg, this.one_lab_region, this.m_one_data, type)
@@ -64,6 +68,7 @@ export class rank_list_top extends base_ui {
             this.m_two_data = data_list[1]
             this.setLabName(this.two_lab_name, this.m_two_data,6)
             this.setImgAvatar(this.two_img_avatar, this.m_two_data)
+            this.setImgAvatarBorder(this.two_img_avatar_border, this.m_two_data)
             this.setLabScore(this.two_lab_score, this.m_two_data)
             this.setImgCar(this.two_img_car, this.m_two_data)
             this.setRegion(this.two_region_bg, this.two_lab_region, this.m_two_data, type)
@@ -72,6 +77,7 @@ export class rank_list_top extends base_ui {
             this.m_three_data = data_list[2]
             this.setLabName(this.three_lab_name, this.m_three_data,5)
             this.setImgAvatar(this.three_img_avatar, this.m_three_data)
+            this.setImgAvatarBorder(this.three_img_avatar_border, this.m_three_data)
             this.setLabScore(this.three_lab_score, this.m_three_data)
             this.setImgCar(this.three_img_car, this.m_three_data)
             this.setRegion(this.three_region_bg, this.three_lab_region, this.m_three_data, type)
@@ -81,18 +87,21 @@ export class rank_list_top extends base_ui {
     private clearAll() {
         this.one_lab_name.getComponent(Label).string = ''
         this.one_img_avatar.getComponent(Sprite).spriteFrame = null
+        // this.one_img_avatar_border.getComponent(Sprite).spriteFrame = null
         this.one_lab_score.getComponent(Label).string = ''
         this.one_img_car.getComponent(Sprite).spriteFrame = null
         this.one_lab_region.getComponent(Label).string = ''
 
         this.two_lab_name.getComponent(Label).string = ''
         this.two_img_avatar.getComponent(Sprite).spriteFrame = null
+        // this.two_img_avatar_border.getComponent(Sprite).spriteFrame = null
         this.two_lab_score.getComponent(Label).string = ''
         this.two_img_car.getComponent(Sprite).spriteFrame = null
         this.two_lab_region.getComponent(Label).string = ''
 
         this.three_lab_name.getComponent(Label).string = ''
         this.three_img_avatar.getComponent(Sprite).spriteFrame = null
+        // this.three_img_avatar_border.getComponent(Sprite).spriteFrame = null
         this.three_lab_score.getComponent(Label).string = ''
         this.three_img_car.getComponent(Sprite).spriteFrame = null
         this.three_lab_region.getComponent(Label).string = ''
@@ -108,6 +117,10 @@ export class rank_list_top extends base_ui {
         })
     }
 
+    private setImgAvatarBorder(node:Node, data:rankData) {
+        // node.getComponent(Sprite).spriteFrame = 
+    }
+
     private setLabScore(node:Node, data:rankData) {
         node.getComponent(Label).string = data.score + '分'
     }

+ 1 - 0
assets/script/ui/rank/rank_my_info.ts

@@ -16,6 +16,7 @@ export class rank_my_info extends Component {
     @property(SpriteFrame) sf_rank_icon_3:SpriteFrame = null
 
     @property(Node) img_avatar:Node = null
+    @property(Node) img_avatar_border:Node = null
     @property(Node) lab_nickname:Node = null
     @property(Node) lab_score:Node = null
     @property(Node) img_car:Node = null