Commit 77a8b2e0 authored by liujiangnan's avatar liujiangnan

debug

parent 6ad52971
......@@ -52,6 +52,7 @@ cc.Class({
// 只加载一次就行了
window.preloadBundleAndSourcesFlag = true;
cc.find("middleLayer/ui/ProgressLabel").active = true;
cc.find('middleLayer/ui/loadingProgress').active = true;
this.preloadBundle();
this.preloadSource();
}
......@@ -108,7 +109,8 @@ cc.Class({
// 'LWD_3', 'op_07',
// 'op_02', 'OP_08',
// 'op_06_1', 'OP10',
'op_09_plus', 'OP11',
// 'op_09_plus',
'OP11',
'OP10_online', 'OP12',
'OP13', 'OP_03_1',
'OSMO_01', 'OP15',
......@@ -180,9 +182,8 @@ cc.Class({
updateProcessBar() {
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;
label.string = `正在加载:${this.loadedCount} / ${this.preloadCount}`;
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