|
@@ -13,6 +13,7 @@ export class rank_list_top extends base_ui {
|
|
@property(Node) one_node = null;
|
|
@property(Node) one_node = null;
|
|
@property(Node) one_lab_name:Node = null;
|
|
@property(Node) one_lab_name:Node = null;
|
|
@property(Node) one_img_avatar: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_lab_score:Node = null;
|
|
@property(Node) one_img_car:Node = null;
|
|
@property(Node) one_img_car:Node = null;
|
|
@property(Node) one_region_bg: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_node = null;
|
|
@property(Node) two_lab_name:Node = null;
|
|
@property(Node) two_lab_name:Node = null;
|
|
@property(Node) two_img_avatar: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_lab_score:Node = null;
|
|
@property(Node) two_img_car:Node = null;
|
|
@property(Node) two_img_car:Node = null;
|
|
@property(Node) two_region_bg: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_node = null;
|
|
@property(Node) three_lab_name:Node = null;
|
|
@property(Node) three_lab_name:Node = null;
|
|
@property(Node) three_img_avatar: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_lab_score:Node = null;
|
|
@property(Node) three_img_car:Node = null;
|
|
@property(Node) three_img_car:Node = null;
|
|
@property(Node) three_region_bg: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.m_one_data = data_list[0]
|
|
this.setLabName(this.one_lab_name, this.m_one_data,7)
|
|
this.setLabName(this.one_lab_name, this.m_one_data,7)
|
|
this.setImgAvatar(this.one_img_avatar, this.m_one_data)
|
|
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.setLabScore(this.one_lab_score, this.m_one_data)
|
|
this.setImgCar(this.one_img_car, 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)
|
|
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.m_two_data = data_list[1]
|
|
this.setLabName(this.two_lab_name, this.m_two_data,6)
|
|
this.setLabName(this.two_lab_name, this.m_two_data,6)
|
|
this.setImgAvatar(this.two_img_avatar, this.m_two_data)
|
|
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.setLabScore(this.two_lab_score, this.m_two_data)
|
|
this.setImgCar(this.two_img_car, 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)
|
|
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.m_three_data = data_list[2]
|
|
this.setLabName(this.three_lab_name, this.m_three_data,5)
|
|
this.setLabName(this.three_lab_name, this.m_three_data,5)
|
|
this.setImgAvatar(this.three_img_avatar, this.m_three_data)
|
|
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.setLabScore(this.three_lab_score, this.m_three_data)
|
|
this.setImgCar(this.three_img_car, 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)
|
|
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() {
|
|
private clearAll() {
|
|
this.one_lab_name.getComponent(Label).string = ''
|
|
this.one_lab_name.getComponent(Label).string = ''
|
|
this.one_img_avatar.getComponent(Sprite).spriteFrame = null
|
|
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_lab_score.getComponent(Label).string = ''
|
|
this.one_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.one_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.one_lab_region.getComponent(Label).string = ''
|
|
this.one_lab_region.getComponent(Label).string = ''
|
|
|
|
|
|
this.two_lab_name.getComponent(Label).string = ''
|
|
this.two_lab_name.getComponent(Label).string = ''
|
|
this.two_img_avatar.getComponent(Sprite).spriteFrame = null
|
|
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_lab_score.getComponent(Label).string = ''
|
|
this.two_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.two_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.two_lab_region.getComponent(Label).string = ''
|
|
this.two_lab_region.getComponent(Label).string = ''
|
|
|
|
|
|
this.three_lab_name.getComponent(Label).string = ''
|
|
this.three_lab_name.getComponent(Label).string = ''
|
|
this.three_img_avatar.getComponent(Sprite).spriteFrame = null
|
|
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_lab_score.getComponent(Label).string = ''
|
|
this.three_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.three_img_car.getComponent(Sprite).spriteFrame = null
|
|
this.three_lab_region.getComponent(Label).string = ''
|
|
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) {
|
|
private setLabScore(node:Node, data:rankData) {
|
|
node.getComponent(Label).string = data.score + '分'
|
|
node.getComponent(Label).string = data.score + '分'
|
|
}
|
|
}
|