Remove resolution parameter

This commit is contained in:
OleSTEEP 2024-02-13 00:40:09 +03:00
parent fb6ab59383
commit 06ff99769d
6 changed files with 29 additions and 52 deletions

View file

@ -241,28 +241,15 @@ 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:
case 0:
ConfigManager.gamepadTips = data.index === 0 ? false : true;
if(SceneManager._scene instanceof Scene_OmoriTitleScreen) {
SceneManager._scene.refreshCommandHints(); // Refresh command title hints;
}
break;
case 2: ConfigManager.textSkip = data.index === 0 ? true : false; break;
case 3: ConfigManager.battleLogSpeed = data.index; ;break;
case 4: ConfigManager.alwaysDash = data.index === 0 ? true : false ;break;
// OMORI RUS mod specific:
case 5: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
case 1: ConfigManager.textSkip = data.index === 0 ? true : false; break;
case 2: ConfigManager.battleLogSpeed = data.index; ;break;
case 3: ConfigManager.alwaysDash = data.index === 0 ? true : false ;break;
};
};