Commit aa3ea35a authored by 范雪寒's avatar 范雪寒

feat:

parent 4f475985
......@@ -4802,7 +4802,7 @@
"__id__": 100
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 102
......@@ -4884,7 +4884,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"width": 0,
"height": 15
},
"_anchorPoint": {
......@@ -4998,7 +4998,7 @@
"__id__": 101
},
"_N$mode": 0,
"_N$progress": 0.5,
"_N$progress": 0,
"_N$reverse": false,
"_id": "bc3W7j5EVJRaoW20bSToA3"
},
......
......@@ -158,6 +158,7 @@ cc.Class({
const label = cc.find("middleLayer/ui/ProgressLabel").getComponent(cc.Label);
label.string = `正在加载:${this.loadedCount} / ${this.preloadCount}`;
const loadingProgress = cc.find('middleLayer/ui/loadingProgress');
loadingProgress.active = true;
if (this.loadedCount > this.preloadCount * 0.99) {
cc.find("middleLayer/ui/ProgressLabel").active = false;
loadingProgress.active = false;
......
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