❤❣ღ rpg maker mv收集 ❤❣ღ
㊕rpg maker mv新功能☪

〄数据库道具上限提升 ✿自动三层级地图
☪高分辨率游戏画面 触屏控制✿
____________________________________________
多设备支持:
输出Windows exe文件、Mac App文件、安卓Apk和iOS ipa✿
Mac、android、windows☪

即使你不用懂编程☪、不用会代码,依然能制作属于自己游戏✿
————————————————
转载于插件の素材の等资源,免费下载☪
✉开发: KADOKAWA ✿ Yoji Ojima
✉发行: Degica
 

JPG图片文件没有【修复脚本】

DEX尝试JPG

试图加载JPG PNG文件没有找到。



试图加载JPG PNG文件没有找到。可选插件参数优先JPG文件加载之前,PNG。


/*:

 * @plugindesc v1.0 Tries to load jpg files if no png found

 * @author Procraftynation - procrastination done right!

 * 

 * @param Prioritize JPG

 * @desc Tries to load jpg files first before trying png

 * Values: true | false

 * @default false

 */


var Imported = Imported || {};

Imported.DEX_TryJPG = true;

(function() { 

   var DEX = DEX || {}; //DEX's main object

   DEX.TryJPG = DEX.TryJPG || {}; // tombstone object for functions and aliases

   

   DEX.TryJPG.jpgFirst = String(PluginManager.parameters('DEX_TryJPG')["Prioritize JPG"]);//true or false

   

   //'function overrides' will depend on the Prioritize JPG flag.

   if(eval(DEX.TryJPG.jpgFirst)) {

      ImageManager.loadBitmap = function(folder, filename, hue, smooth) {

         if (filename) {

           var path = folder + encodeURIComponent(filename) + '.jpg';//changed from png to jpg

           var bitmap = this.loadNormalBitmap(path, hue || 0);

           bitmap.smooth = smooth;

           return bitmap;

         } else {

           return this.loadEmptyBitmap();

         }

      };

      Bitmap.prototype._onError = function() {

         if(!this._triedPNG) {

            //change extension file to png assuming the last 3 characters of src is jpg

            this._image.src = this._image.src.substr(0,this._image.src.length-3) + 'png';

            this._triedPNG = true;

         } else {

            this._hasError = true;

         }

      };

   } else {

      Bitmap.prototype._onError = function() {

         if(!this._triedJPG) {

            //change extension file to jpg assuming the last 3 characters of src is png

            this._image.src = this._image.src.substr(0,this._image.src.length-3) + 'jpg';

            this._triedJPG = true;

         } else {

            this._hasError = true;

         }

      };

   }

})();


 
评论