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

@ -936,11 +936,11 @@ plugins:
gamepadMessage: "You can't edit GAMEPAD inputs using your KEYBOARD!"
gamepadNotDetected: "No compatible GAMEPADs detected."
general:
screenResolution:
text: SCREEN RESOLUTION
options: ["X1", "X2"]
help: Change the resolution of the screen.
spacing: 80
# screenResolution:
# text: SCREEN RESOLUTION
# options: ["X1", "X2"]
# help: Change the resolution of the screen.
# spacing: 80
# fullScreen:
# text: FULLSCREEN

View file

@ -38,11 +38,11 @@ plugins:
optionsMenu:
general:
screenResolution:
text: SCREEN RESOLUTION
options: ["X1", "X2", X3, X4]
help: Change the resolution of the screen.
spacing: 80
# screenResolution:
# text: SCREEN RESOLUTION
# options: ["X1", "X2", X3, X4]
# help: Change the resolution of the screen.
# spacing: 80
# fullScreen:
# text: FULLSCREEN

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;
};
};

View file

@ -568,11 +568,11 @@ plugins:
gamepadMessage: "Нельзя настроить управление для ГЕЙМПАДА, используя КЛАВИАТУРУ!"
gamepadNotDetected: "Поддерживаемых геймпадов не найдено."
general:
screenResolution:
text: РАЗРЕШЕНИЕ ЭКРАНА
options: ['X1', 'X2']
help: Изменить разрешение экрана.
spacing: 80
# screenResolution:
# text: РАЗРЕШЕНИЕ ЭКРАНА
# options: ['X1', 'X2']
# help: Изменить разрешение экрана.
# spacing: 80
# fullScreen:
# text: ПОЛНЫЙ ЭКРАН

View file

@ -39,11 +39,11 @@ plugins:
optionsMenu:
general:
screenResolution:
text: РАЗРЕШЕНИЕ ЭКРАНА
options: ['X1', 'X2', X3, X4]
help: Change the resolution of the screen.
spacing: 80
# screenResolution:
# text: РАЗРЕШЕНИЕ ЭКРАНА
# options: ['X1', 'X2', X3, X4]
# help: Change the resolution of the screen.
# spacing: 80
# fullScreen:
# text: ПОЛНЫЙ ЭКРАН

View file

@ -241,28 +241,18 @@ 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;
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;
// OMORI RUS mod specific:
case 5: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
case 4: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
};
};