更新UI
This commit is contained in:
parent
85b5476f3f
commit
fbbb661e02
|
|
@ -14644,7 +14644,7 @@
|
||||||
"_srcBlendFactor": 770,
|
"_srcBlendFactor": 770,
|
||||||
"_dstBlendFactor": 771,
|
"_dstBlendFactor": 771,
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "585826a8-ee0c-4ef2-b91c-1ba647ca9ade"
|
"__uuid__": "74a6cf90-2210-4700-bd59-29b1c8cf5054"
|
||||||
},
|
},
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
"_sizeMode": 1,
|
"_sizeMode": 1,
|
||||||
|
|
@ -14657,9 +14657,7 @@
|
||||||
"_fillStart": 0,
|
"_fillStart": 0,
|
||||||
"_fillRange": 0,
|
"_fillRange": 0,
|
||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_atlas": {
|
"_atlas": null,
|
||||||
"__uuid__": "933f7976-6238-4e66-bef6-a7e118893b12"
|
|
||||||
},
|
|
||||||
"_id": "66oP/IO61CHqMsEkV8Dv2K"
|
"_id": "66oP/IO61CHqMsEkV8Dv2K"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3110,6 +3110,7 @@ export default class JiaZai extends cc.Component {
|
||||||
for (let i = 0; i < rankData.length; i++) {
|
for (let i = 0; i < rankData.length; i++) {
|
||||||
rankData[i].rank = i + 1;
|
rankData[i].rank = i + 1;
|
||||||
}
|
}
|
||||||
|
console.log("rankingData_________", rankData);
|
||||||
if (this.RankNode != null && this.RankNode != undefined) {
|
if (this.RankNode != null && this.RankNode != undefined) {
|
||||||
// console.log("_________________________预制体已经加载好了,准备渲染");
|
// console.log("_________________________预制体已经加载好了,准备渲染");
|
||||||
this.node.getChildByName("Career").addChild(this.RankNode);
|
this.node.getChildByName("Career").addChild(this.RankNode);
|
||||||
|
|
@ -3149,7 +3150,7 @@ export default class JiaZai extends cc.Component {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log("rankingData_________", rankData);
|
|
||||||
});
|
});
|
||||||
}, isShow);
|
}, isShow);
|
||||||
}
|
}
|
||||||
|
|
@ -3181,9 +3182,9 @@ export default class JiaZai extends cc.Component {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (rankingData) {
|
if (rankingData) {
|
||||||
if (rankingData.length >= 8) {
|
if (rankingData.length >= 10) {
|
||||||
let jg = false;
|
let jg = false;
|
||||||
for (let j = 0; j < 8; j++) {
|
for (let j = 0; j < 10; j++) {
|
||||||
if (rankingData[j].id == cc.fx.GameConfig.GM_INFO.uid) {
|
if (rankingData[j].id == cc.fx.GameConfig.GM_INFO.uid) {
|
||||||
jg = true;
|
jg = true;
|
||||||
return;
|
return;
|
||||||
|
|
@ -3191,7 +3192,7 @@ export default class JiaZai extends cc.Component {
|
||||||
}
|
}
|
||||||
if (!jg) {
|
if (!jg) {
|
||||||
let length = rankingData.length;
|
let length = rankingData.length;
|
||||||
if (length > 8) length = 8;
|
if (length > 10) length = 10;
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
if (rankingData[i].addLevel < selfData.addLevel) {
|
if (rankingData[i].addLevel < selfData.addLevel) {
|
||||||
rankingData.splice(i, 0, selfData);
|
rankingData.splice(i, 0, selfData);
|
||||||
|
|
@ -3199,7 +3200,7 @@ export default class JiaZai extends cc.Component {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!self) rankingData[7] = selfData
|
if (!self) rankingData[9] = selfData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
"premultiplyAlpha": false,
|
"premultiplyAlpha": false,
|
||||||
"genMipmaps": false,
|
"genMipmaps": false,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
"width": 2048,
|
"width": 1021,
|
||||||
"height": 2048,
|
"height": 1242,
|
||||||
"platformSettings": {},
|
"platformSettings": {},
|
||||||
"subMetas": {}
|
"subMetas": {}
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 13 KiB |
BIN
assets/career/img/yuangongka.png
Normal file
BIN
assets/career/img/yuangongka.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
38
assets/career/img/yuangongka.png.meta
Normal file
38
assets/career/img/yuangongka.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "ef855cfe-39c2-4a97-a0f3-1519b4af5d22",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 95,
|
||||||
|
"height": 114,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"yuangongka": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "93f578e5-569a-42dd-856d-b11448d35c87",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "ef855cfe-39c2-4a97-a0f3-1519b4af5d22",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 95,
|
||||||
|
"height": 114,
|
||||||
|
"rawWidth": 95,
|
||||||
|
"rawHeight": 114,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -185,9 +185,7 @@
|
||||||
],
|
],
|
||||||
"_srcBlendFactor": 770,
|
"_srcBlendFactor": 770,
|
||||||
"_dstBlendFactor": 771,
|
"_dstBlendFactor": 771,
|
||||||
"_spriteFrame": {
|
"_spriteFrame": null,
|
||||||
"__uuid__": "8b8f0cb9-1a62-4cec-b268-d10fdb043a81"
|
|
||||||
},
|
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
"_sizeMode": 1,
|
"_sizeMode": 1,
|
||||||
"_fillType": 0,
|
"_fillType": 0,
|
||||||
|
|
@ -199,9 +197,7 @@
|
||||||
"_fillStart": 0,
|
"_fillStart": 0,
|
||||||
"_fillRange": 0,
|
"_fillRange": 0,
|
||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_atlas": {
|
"_atlas": null,
|
||||||
"__uuid__": "933f7976-6238-4e66-bef6-a7e118893b12"
|
|
||||||
},
|
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export default class CareerItem extends cc.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
let length = lengthTemp + 4;
|
let length = lengthTemp + 4;
|
||||||
if (length > 12) length = 12;
|
if (length > 14) length = 14;
|
||||||
for (let i = 4; i < length; i++) {
|
for (let i = 4; i < length; i++) {
|
||||||
this.randerChildren.push(this.node.children[i]);
|
this.randerChildren.push(this.node.children[i]);
|
||||||
let username = cc.fx.GameTool.subName(this.data.rankingData[i - 4].username, 5);
|
let username = cc.fx.GameTool.subName(this.data.rankingData[i - 4].username, 5);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user