Commit 7108c116 authored by 李维's avatar 李维

修改加载页设计

parent 40a19edc
...@@ -54,19 +54,16 @@ cc.Class({ ...@@ -54,19 +54,16 @@ cc.Class({
}, },
setProgress(progress) { setProgress(progress) {
setTimeout(() => { setTimeout(() => {
if (!this.barSf) { if (!this.barSf) {
return; return;
} }
const w = this.barBaseW * progress; const w = this.barBaseW * progress;
// const rect = this.barSf.getRect();
const rect = this.barSf.getRect(); // rect.width = w;
rect.width = w;
this.bar.width = w; this.bar.width = w;
this.barSpr.spriteFrame.setRect(rect); // this.barSpr.spriteFrame.setRect(rect);
}, 1); }, 1);
}, },
// update (dt) {}, // update (dt) {},
}); });
...@@ -299,22 +299,25 @@ ...@@ -299,22 +299,25 @@
"__id__": 9 "__id__": 9
}, },
{ {
"__id__": 11 "__id__": 12
}, },
{ {
"__id__": 21 "__id__": 14
}, },
{ {
"__id__": 23 "__id__": 28
},
{
"__id__": 30
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 32
}, },
{ {
"__id__": 26 "__id__": 33
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -367,7 +370,7 @@ ...@@ -367,7 +370,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "layout", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 8
...@@ -377,6 +380,130 @@ ...@@ -377,6 +380,130 @@
"_components": [ "_components": [
{ {
"__id__": 10 "__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "257PAYiXZOZ6+dZT3NxWNJ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4dc12c19-1fc3-47ba-b2b4-70db9d7117fa"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e6sbErr+RGV4FeODZxsZYQ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 1080,
"_id": "05puSIk+dIBKoq8maVGGP2"
},
{
"__type__": "cc.Node",
"_name": "layout",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -432,7 +559,7 @@ ...@@ -432,7 +559,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 9 "__id__": 12
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -468,16 +595,19 @@ ...@@ -468,16 +595,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 12 "__id__": 15
},
{
"__id__": 18
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 26
}, },
{ {
"__id__": 20 "__id__": 27
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -528,29 +658,156 @@ ...@@ -528,29 +658,156 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "74vmJ2zBBM+bb8ymP3WkKK" "_id": "74vmJ2zBBM+bb8ymP3WkKK"
}, },
{
"__type__": "cc.Node",
"_name": "logo",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 466,
"height": 292
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3fM6uFXcFLaYbQhswIEd2h"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c1b69609-010b-4b03-a828-a5151d20deaf"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "67pRrjf7NDP4aLeNChWH0X"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 1133.5,
"_right": 3400.5,
"_top": 2289.462,
"_bottom": 2418.538,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 466,
"_originalHeight": 292,
"_id": "29kmlZlX5BIqelGKzjDdHe"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "progress", "_name": "progress",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 11 "__id__": 14
}, },
"_children": [ "_children": [
{ {
"__id__": 13 "__id__": 19
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 22
}, },
{ {
"__id__": 17 "__id__": 23
},
{
"__id__": 24
} }
], ],
"_prefab": { "_prefab": {
"__id__": 18 "__id__": 25
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -562,8 +819,8 @@ ...@@ -562,8 +819,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 511, "width": 1161,
"height": 45 "height": 81
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -574,8 +831,8 @@ ...@@ -574,8 +831,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-255.5, -580.5,
-138.77, -200,
0, 0,
0, 0,
0, 0,
...@@ -604,17 +861,17 @@ ...@@ -604,17 +861,17 @@
"_name": "bar", "_name": "bar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 12 "__id__": 18
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 14 "__id__": 20
} }
], ],
"_prefab": { "_prefab": {
"__id__": 15 "__id__": 21
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -626,8 +883,8 @@ ...@@ -626,8 +883,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 490, "width": 1148,
"height": 26 "height": 70
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -638,8 +895,8 @@ ...@@ -638,8 +895,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
11.627, 4.627000000000001,
4.096, 0.453,
0, 0,
0, 0,
0, 0,
...@@ -668,7 +925,7 @@ ...@@ -668,7 +925,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 13 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -679,9 +936,9 @@ ...@@ -679,9 +936,9 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c8263dcf-d226-41b6-8cea-42be19fdb92a" "__uuid__": "2efad969-f259-40fc-bbfe-7d6f3cc610aa"
}, },
"_type": 0, "_type": 1,
"_sizeMode": 1, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
...@@ -698,7 +955,7 @@ ...@@ -698,7 +955,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 12 "__id__": 18
}, },
"asset": { "asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4" "__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...@@ -711,7 +968,7 @@ ...@@ -711,7 +968,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 12 "__id__": 18
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -722,7 +979,7 @@ ...@@ -722,7 +979,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a72e2ca1-5791-4a3f-8a09-5e73e061b76a" "__uuid__": "863771ab-1fe7-442b-90a5-2ddada7dcd8f"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -743,15 +1000,42 @@ ...@@ -743,15 +1000,42 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 12 "__id__": 18
}, },
"_enabled": true, "_enabled": true,
"_id": "3eMT/DXoJNGZT/8Z3nuTUH" "_id": "3eMT/DXoJNGZT/8Z3nuTUH"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": -200,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "d6Ppg9c8dAeY6b8VGFwPaY"
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 12 "__id__": 18
}, },
"asset": { "asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4" "__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...@@ -764,7 +1048,7 @@ ...@@ -764,7 +1048,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 14
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -774,9 +1058,7 @@ ...@@ -774,9 +1058,7 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": null,
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
...@@ -796,7 +1078,7 @@ ...@@ -796,7 +1078,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 14
}, },
"_enabled": true, "_enabled": true,
"_id": "d9Sm5lOKBAxKufJF2Q8Nr8" "_id": "d9Sm5lOKBAxKufJF2Q8Nr8"
...@@ -812,7 +1094,7 @@ ...@@ -812,7 +1094,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -868,7 +1150,7 @@ ...@@ -868,7 +1150,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -906,7 +1188,7 @@ ...@@ -906,7 +1188,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -962,7 +1244,7 @@ ...@@ -962,7 +1244,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"_id": "c8RSZKHRJO95/RfIMIkSA5" "_id": "c8RSZKHRJO95/RfIMIkSA5"
......
{
"ver": "2.3.5",
"uuid": "698f4e75-4b92-48eb-9058-811032a42347",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1161,
"height": 81,
"platformSettings": {},
"subMetas": {
"dg_bg_progress": {
"ver": "1.0.4",
"uuid": "863771ab-1fe7-442b-90a5-2ddada7dcd8f",
"rawTextureUuid": "698f4e75-4b92-48eb-9058-811032a42347",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1161,
"height": 81,
"rawWidth": 1161,
"rawHeight": 81,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a655a8d9-db58-4d3b-8362-dab087360507",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1148,
"height": 70,
"platformSettings": {},
"subMetas": {
"dg_progress": {
"ver": "1.0.4",
"uuid": "2efad969-f259-40fc-bbfe-7d6f3cc610aa",
"rawTextureUuid": "a655a8d9-db58-4d3b-8362-dab087360507",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1148,
"height": 70,
"rawWidth": 1148,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 39,
"borderRight": 53,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d07b9085-9fd8-4731-ac90-43bd545118f4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"dige_bg": {
"ver": "1.0.4",
"uuid": "4dc12c19-1fc3-47ba-b2b4-70db9d7117fa",
"rawTextureUuid": "d07b9085-9fd8-4731-ac90-43bd545118f4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7ac5d82a-f9bb-4fc2-be2a-0f47c7846f04",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 466,
"height": 292,
"platformSettings": {},
"subMetas": {
"logo": {
"ver": "1.0.4",
"uuid": "c1b69609-010b-4b03-a828-a5151d20deaf",
"rawTextureUuid": "7ac5d82a-f9bb-4fc2-be2a-0f47c7846f04",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 466,
"height": 292,
"rawWidth": 466,
"rawHeight": 292,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment