更新
|
|
@ -537,7 +537,7 @@
|
||||||
"_srcBlendFactor": 770,
|
"_srcBlendFactor": 770,
|
||||||
"_dstBlendFactor": 771,
|
"_dstBlendFactor": 771,
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "2dece190-21a1-4502-9947-858be2b5d927"
|
"__uuid__": "adb2b21f-b06e-450b-bd2f-ed5ec78f2422"
|
||||||
},
|
},
|
||||||
"_type": 1,
|
"_type": 1,
|
||||||
"_sizeMode": 0,
|
"_sizeMode": 0,
|
||||||
|
|
@ -567,7 +567,7 @@
|
||||||
"_left": 0,
|
"_left": 0,
|
||||||
"_right": 0,
|
"_right": 0,
|
||||||
"_top": 0,
|
"_top": 0,
|
||||||
"_bottom": -210,
|
"_bottom": -8080,
|
||||||
"_verticalCenter": 0,
|
"_verticalCenter": 0,
|
||||||
"_horizontalCenter": 0,
|
"_horizontalCenter": 0,
|
||||||
"_isAbsLeft": true,
|
"_isAbsLeft": true,
|
||||||
|
|
@ -577,7 +577,7 @@
|
||||||
"_isAbsHorizontalCenter": true,
|
"_isAbsHorizontalCenter": true,
|
||||||
"_isAbsVerticalCenter": true,
|
"_isAbsVerticalCenter": true,
|
||||||
"_originalWidth": 1080,
|
"_originalWidth": 1080,
|
||||||
"_originalHeight": 2340,
|
"_originalHeight": 10000,
|
||||||
"_id": "0a5XlUuGZCprz0fwaiG835"
|
"_id": "0a5XlUuGZCprz0fwaiG835"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -10246,8 +10246,8 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 646,
|
"width": 644,
|
||||||
"height": 104
|
"height": 103
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|
|
||||||
BIN
assets/UI/UI/start/careerBg.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
38
assets/UI/UI/start/careerBg.jpg.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "948c1efa-7e1b-4cdd-af89-eabc033d1cb5",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 1080,
|
||||||
|
"height": 2340,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"careerBg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "adb2b21f-b06e-450b-bd2f-ed5ec78f2422",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "948c1efa-7e1b-4cdd-af89-eabc033d1cb5",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 1080,
|
||||||
|
"height": 2340,
|
||||||
|
"rawWidth": 1080,
|
||||||
|
"rawHeight": 2340,
|
||||||
|
"borderTop": 1800,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 135 KiB |
|
|
@ -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": {}
|
||||||
}
|
}
|
||||||
BIN
assets/career/img/cityBg.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
38
assets/career/img/cityBg.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "e884f956-351e-480c-896f-596e8c8efb7f",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 1042,
|
||||||
|
"height": 650,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"cityBg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "b351898f-292b-4ef2-bf30-b56a1be1b7d1",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "e884f956-351e-480c-896f-596e8c8efb7f",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 1,
|
||||||
|
"trimY": 1,
|
||||||
|
"width": 1040,
|
||||||
|
"height": 648,
|
||||||
|
"rawWidth": 1042,
|
||||||
|
"rawHeight": 650,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/career/img/cityBg1.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
38
assets/career/img/cityBg1.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "a139a16d-fb49-4da7-acb5-c40e458de87d",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 1042,
|
||||||
|
"height": 650,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"cityBg1": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "1a11697a-85b6-4d48-8acf-8579acc80ff3",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "a139a16d-fb49-4da7-acb5-c40e458de87d",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 1,
|
||||||
|
"trimY": 1,
|
||||||
|
"width": 1040,
|
||||||
|
"height": 648,
|
||||||
|
"rawWidth": 1042,
|
||||||
|
"rawHeight": 650,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/career/img/faguang.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
38
assets/career/img/faguang.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "3ae8ec0c-8d84-49f1-be81-7cda619b1119",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 539,
|
||||||
|
"height": 527,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"faguang": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "fc7cb2fa-9380-497c-9322-f6b2867ec5ff",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "3ae8ec0c-8d84-49f1-be81-7cda619b1119",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": -5.5,
|
||||||
|
"offsetY": 12,
|
||||||
|
"trimX": 5,
|
||||||
|
"trimY": 4,
|
||||||
|
"width": 518,
|
||||||
|
"height": 495,
|
||||||
|
"rawWidth": 539,
|
||||||
|
"rawHeight": 527,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
assets/career/img/jiangbei.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
38
assets/career/img/jiangbei.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "74bf5543-8845-42e6-9d5a-c224621362b9",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 798,
|
||||||
|
"height": 716,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"jiangbei": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "a0388a09-d1dd-48dd-bcb3-55bbbb27fa6c",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "74bf5543-8845-42e6-9d5a-c224621362b9",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 798,
|
||||||
|
"height": 716,
|
||||||
|
"rawWidth": 798,
|
||||||
|
"rawHeight": 716,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 655 B |
BIN
assets/career/img/ruzhiBg.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
38
assets/career/img/ruzhiBg.png.meta
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "9f5a4a14-158e-4e45-84f0-4b2b3586d899",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 922,
|
||||||
|
"height": 203,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {
|
||||||
|
"ruzhiBg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "74a6cf90-2210-4700-bd59-29b1c8cf5054",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "9f5a4a14-158e-4e45-84f0-4b2b3586d899",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 922,
|
||||||
|
"height": 203,
|
||||||
|
"rawWidth": 922,
|
||||||
|
"rawHeight": 203,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/career/img/yuangongka.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
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": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -122,8 +122,8 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 306,
|
"width": 274,
|
||||||
"height": 355
|
"height": 316
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default class CareerItem extends cc.Component {
|
||||||
public dataChanged() {
|
public dataChanged() {
|
||||||
this.randerChildren = [];
|
this.randerChildren = [];
|
||||||
|
|
||||||
for (let i = 4; i < 12; i++) {
|
for (let i = 4; i < 14; i++) {
|
||||||
this.node.children[i].getChildByName("name").getComponent(cc.Label).string = "";
|
this.node.children[i].getChildByName("name").getComponent(cc.Label).string = "";
|
||||||
this.node.children[i].getChildByName("level").getComponent(cc.Label).string = "";
|
this.node.children[i].getChildByName("level").getComponent(cc.Label).string = "";
|
||||||
this.node.children[i].getChildByName("mask").getChildByName("icon").getComponent(cc.Sprite).spriteFrame = null;
|
this.node.children[i].getChildByName("mask").getChildByName("icon").getComponent(cc.Sprite).spriteFrame = null;
|
||||||
|
|
@ -42,6 +42,7 @@ export default class CareerItem extends cc.Component {
|
||||||
this.node.getChildByName("ranking").getChildByName("nomal").active = false;
|
this.node.getChildByName("ranking").getChildByName("nomal").active = false;
|
||||||
if (this.data.rank == 1) {
|
if (this.data.rank == 1) {
|
||||||
this.node.getChildByName("ranking").getChildByName("one").active = true;
|
this.node.getChildByName("ranking").getChildByName("one").active = true;
|
||||||
|
this.node.getChildByName("bg").getChildByName("bg1").active = true;
|
||||||
}
|
}
|
||||||
else if (this.data.rank == 2) {
|
else if (this.data.rank == 2) {
|
||||||
this.node.getChildByName("ranking").getChildByName("two").active = true;
|
this.node.getChildByName("ranking").getChildByName("two").active = true;
|
||||||
|
|
@ -74,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);
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,7 @@ export default class Item extends cc.Component {
|
||||||
|| this.data.useravatar == "23"
|
|| this.data.useravatar == "23"
|
||||||
|| this.data.useravatar == "24"
|
|| this.data.useravatar == "24"
|
||||||
|| this.data.useravatar == "25"
|
|| this.data.useravatar == "25"
|
||||||
|| this.data.useravatar == "26"
|
|| this.data.useravatar == "26") {
|
||||||
) {
|
|
||||||
let useravatar = this.data.useravatar;
|
let useravatar = this.data.useravatar;
|
||||||
let useravatarTemp = "icon_" + useravatar;
|
let useravatarTemp = "icon_" + useravatar;
|
||||||
console.log("用户头像:", useravatarTemp);
|
console.log("用户头像:", useravatarTemp);
|
||||||
|
|
|
||||||