diff --git a/libs/loader.js b/libs/loader.js index 57421549..563df8a5 100644 --- a/libs/loader.js +++ b/libs/loader.js @@ -67,7 +67,22 @@ loader.prototype._loadExtraImages = function (callback) { this._setStartLoadTipText("正在加载图片文件..."); if (main.useCompress) { + // Check .gif + var gifs = images.filter(function (name) { + return name.toLowerCase().endsWith('.gif'); + }); + images = images.filter(function (name) { + return !name.toLowerCase().endsWith('.gif'); + }); + this.loadImagesFromZip('project/images/images.h5data', images, core.material.images.images, callback); + gifs.forEach(function (gif) { + this.loadImage(gif, function (id, image) { + if (image != null) { + core.material.images.images[gif] = image; + } + }); + }, this); } else { this.loadImages(images, core.material.images.images, callback); } diff --git a/常用工具/JS代码压缩工具.exe b/常用工具/JS代码压缩工具.exe index 5dfae15a..c5f5e89c 100644 Binary files a/常用工具/JS代码压缩工具.exe and b/常用工具/JS代码压缩工具.exe differ