Fix default settings with RUSPatches
This commit is contained in:
parent
f3537a0b2c
commit
0d335b1786
1 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
// ===================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue