更新UI
|
|
@ -537,7 +537,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "2dece190-21a1-4502-9947-858be2b5d927"
|
||||
"__uuid__": "73244291-e89d-4b9b-872f-e72671c2bd69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
|
|
|
|||
BIN
assets/UI/UI/start/careerBg.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "043a661e-1452-433f-b2f2-d270a7d8a6b9",
|
||||
"uuid": "5964b76e-a129-4dd7-8bde-6f9aa53c5919",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
|
|
@ -14,9 +14,9 @@
|
|||
"subMetas": {
|
||||
"careerBg": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "2dece190-21a1-4502-9947-858be2b5d927",
|
||||
"uuid": "73244291-e89d-4b9b-872f-e72671c2bd69",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "043a661e-1452-433f-b2f2-d270a7d8a6b9",
|
||||
"rawTextureUuid": "5964b76e-a129-4dd7-8bde-6f9aa53c5919",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 135 KiB |
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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/career/img/jiangbei.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "59c8f156-6c58-4650-9be6-fcd46a200388",
|
||||
"uuid": "74bf5543-8845-42e6-9d5a-c224621362b9",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
|
|
@ -8,15 +8,15 @@
|
|||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 1080,
|
||||
"height": 2340,
|
||||
"width": 798,
|
||||
"height": 716,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"careerBg": {
|
||||
"jiangbei": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "946b8178-887b-4052-ab0d-23aa8296ace0",
|
||||
"uuid": "a0388a09-d1dd-48dd-bcb3-55bbbb27fa6c",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "59c8f156-6c58-4650-9be6-fcd46a200388",
|
||||
"rawTextureUuid": "74bf5543-8845-42e6-9d5a-c224621362b9",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
|
|
@ -24,11 +24,11 @@
|
|||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 1080,
|
||||
"height": 2340,
|
||||
"rawWidth": 1080,
|
||||
"rawHeight": 2340,
|
||||
"borderTop": 1852,
|
||||
"width": 798,
|
||||
"height": 716,
|
||||
"rawWidth": 798,
|
||||
"rawHeight": 716,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
BIN
assets/career/img/ruzhiBg.png
Normal file
|
After Width: | Height: | Size: 3.9 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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ export default class CareerItem extends cc.Component {
|
|||
public dataChanged() {
|
||||
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("level").getComponent(cc.Label).string = "";
|
||||
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;
|
||||
if (this.data.rank == 1) {
|
||||
this.node.getChildByName("ranking").getChildByName("one").active = true;
|
||||
this.node.getChildByName("bg").getChildByName("bg1").active = true;
|
||||
}
|
||||
else if (this.data.rank == 2) {
|
||||
this.node.getChildByName("ranking").getChildByName("two").active = true;
|
||||
|
|
|
|||