Skip to content

Commit c8427ee

Browse files
committed
Fix LoaderLayer bug
1 parent a0f75b2 commit c8427ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/runtime/CCLoaderLayer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ cc.LoaderLayer = cc.Layer.extend({
135135
//tips
136136
if (config.tips.show) {
137137
this.tipsLabel = new cc.LabelTTF("100%", "Arial", config.tips.fontSize);
138-
this.tipsLabel.setColor(config.tips.color);
138+
this.tipsLabel.setColor(config.tips.color ? config.tips.color : cc.color(255, 255, 255));
139139
this.tipsLabel.setPosition(config.tips.position ? config.tips.position : this.progressBackgroundSprite ? cc.p(this.progressBackgroundSprite.x, this.progressBackgroundSprite.y + this.progressBackgroundSprite.height / 2 + 20) : cc.pAdd(cc.visibleRect.bottom, cc.p(0, 100)));
140140
this._contentLayer.addChild(this.tipsLabel);
141141
}
@@ -470,7 +470,7 @@ cc.LoaderLayer.preload = function (groupname, callback, target) {
470470

471471
cc.LoaderLayer._useDefaultSource = true;
472472
cc.LoaderLayer._isDefaultProgress = true;
473-
cc.LoaderLayer._finalConfig = cc.LoaderLayer._confg;
473+
cc.LoaderLayer._finalConfig = cc.LoaderLayer._config;
474474
cc.LoaderLayer.groups = {};
475475
cc.LoaderLayer.setUseDefaultSource = function (status) {
476476
cc.LoaderLayer._useDefaultSource = status;

0 commit comments

Comments
 (0)