//============================================================================= // KMS_AccelerateFileScene.js // Last update: 2015/12/05 //============================================================================= /*: * @plugindesc * [v0.1.0] Accelerate drawing save/load scene. * * @author TOMY (Kamesoft) * * @help This plugin does not provide plugin commands. */ /*:ja * @plugindesc * [v0.1.0] セーブ/ロード画面の描画を高速化します。 * * @author TOMY (Kamesoft) * * @help このプラグインには、プラグインコマンドはありません。 */ var KMS = KMS || {}; (function() { KMS.imported = KMS.imported || {}; KMS.imported['AccelerateFileScene'] = true; //var pluginParams = PluginManager.parameters('KMS_AccelerateFileScene'); //var Params = {}; //----------------------------------------------------------------------------- // DataManager var _KMS_AccelerateFileScene_DataManager_loadGlobalInfo = DataManager.loadGlobalInfo; DataManager.loadGlobalInfo = function() { if (!this._globalInfoCache) { this._globalInfoCache = _KMS_AccelerateFileScene_DataManager_loadGlobalInfo.call(this); } return this._globalInfoCache; }; var _KMS_AccelerateFileScene_DataManager_saveGlobalInfo = DataManager.saveGlobalInfo; DataManager.saveGlobalInfo = function(info) { this._globalInfoCache = null; _KMS_AccelerateFileScene_DataManager_saveGlobalInfo.call(this, info); }; })();
11.63 KB, 下载次数: 7
Window_SaveInfo.prototype.isJson = function (content) { try { if (typeof JSON.parse(content) === "object") { return true; } } catch (e) { return false; } }; Window_SaveInfo.prototype.drawContents = function (dy) { if (!this._saveContents) { return setTimeout(this.drawContents.bind(this, dy), 50); } if (this.isJson(this._saveContents)) { this._saveContents = JsonEx.parse(this._saveContents); } dy = this.drawPartyGraphics(dy); dy = this.drawPartyNames(dy); dy = this.drawPartyLevels(dy); this.drawColumnData(dy); }; Yanfly.Save.Scene_File_performActionDelete = Scene_File.prototype.performActionDelete; Scene_File.prototype.performActionDelete = function () { Yanfly.Save.Scene_File_performActionDelete.call(this); var globalInfo = DataManager.loadGlobalInfo(); delete globalInfo[this.savefileId()]; DataManager.saveGlobalInfo(globalInfo); this._listWindow.refresh(); };
青衣blackcloth 发表于 2024-9-8 13:12
有个傻瓜办法,就是注释掉删除,这样就不报错了
如图,没有删除了
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |