diff --git a/www/js/plugins/CordovaFixes.js b/www/js/plugins/CordovaFixes.js index bc823c4..740ddfc 100644 --- a/www/js/plugins/CordovaFixes.js +++ b/www/js/plugins/CordovaFixes.js @@ -235,6 +235,40 @@ ConfigManager.restoreDefaultConfig = function () { if (!!needsRestore) { DataManager._restoreGlobalInfo(); } } +Window_OmoMenuOptionsGeneral.prototype.processOptionCommand = function() { + var index = this.index(); + var data = this._optionsList[index]; + switch (index) { + case 0: // Screen Resolution + Yanfly.Param.ScreenWidth = 640 * (data.index + 1); + Yanfly.Param.ScreenHeight = 480 * (data.index + 1) ; + SceneManager._screenWidth = Yanfly.Param.ScreenWidth; + SceneManager._screenHeight = Yanfly.Param.ScreenHeight; + Yanfly.updateResolution(); + Yanfly.moveToCenter(); + // Set Config Manager Screen Resolution + ConfigManager.screenResolution = data.index; + break; + case 1: // Fullscreen + // Set config manager Full screen state + ConfigManager.fullScreen = data.index === 0 ? true : false; + this._processDelay = 20; + break; + case 2: + ConfigManager.gamepadTips = data.index === 0 ? true : false; + if(SceneManager._scene instanceof Scene_OmoriTitleScreen) { + SceneManager._scene.refreshCommandHints(); // Refresh command title hints; + } + break; + case 3: ConfigManager.textSkip = data.index === 0 ? true : false; break; + case 4: ConfigManager.battleLogSpeed = data.index; ;break; + case 5: ConfigManager.alwaysDash = data.index === 0 ? true : false ;break; + + // OMORI RUS mod specific: + case 6: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break; + }; + }; + // =================== // Android Wake Lock // ===================