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!" gamepadMessage: "You can't edit GAMEPAD inputs using your KEYBOARD!"
gamepadNotDetected: "No compatible GAMEPADs detected." gamepadNotDetected: "No compatible GAMEPADs detected."
general: general:
screenResolution: # screenResolution:
text: SCREEN RESOLUTION # text: SCREEN RESOLUTION
options: ["X1", "X2"] # options: ["X1", "X2"]
help: Change the resolution of the screen. # help: Change the resolution of the screen.
spacing: 80 # spacing: 80
# fullScreen: # fullScreen:
# text: FULLSCREEN # text: FULLSCREEN

View file

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

View file

@ -241,28 +241,15 @@ Window_OmoMenuOptionsGeneral.prototype.processOptionCommand = function() {
var index = this.index(); var index = this.index();
var data = this._optionsList[index]; var data = this._optionsList[index];
switch (index) { switch (index) {
case 0: // Screen Resolution case 0:
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:
ConfigManager.gamepadTips = data.index === 0 ? false : true; ConfigManager.gamepadTips = data.index === 0 ? false : true;
if(SceneManager._scene instanceof Scene_OmoriTitleScreen) { if(SceneManager._scene instanceof Scene_OmoriTitleScreen) {
SceneManager._scene.refreshCommandHints(); // Refresh command title hints; SceneManager._scene.refreshCommandHints(); // Refresh command title hints;
} }
break; break;
case 2: ConfigManager.textSkip = data.index === 0 ? true : false; break; case 1: ConfigManager.textSkip = data.index === 0 ? true : false; break;
case 3: ConfigManager.battleLogSpeed = data.index; ;break; case 2: ConfigManager.battleLogSpeed = data.index; ;break;
case 4: ConfigManager.alwaysDash = data.index === 0 ? true : false ;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;
}; };
}; };

View file

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

View file

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

View file

@ -241,28 +241,18 @@ Window_OmoMenuOptionsGeneral.prototype.processOptionCommand = function() {
var index = this.index(); var index = this.index();
var data = this._optionsList[index]; var data = this._optionsList[index];
switch (index) { switch (index) {
case 0: // Screen Resolution case 0:
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:
ConfigManager.gamepadTips = data.index === 0 ? false : true; ConfigManager.gamepadTips = data.index === 0 ? false : true;
if(SceneManager._scene instanceof Scene_OmoriTitleScreen) { if(SceneManager._scene instanceof Scene_OmoriTitleScreen) {
SceneManager._scene.refreshCommandHints(); // Refresh command title hints; SceneManager._scene.refreshCommandHints(); // Refresh command title hints;
} }
break; break;
case 2: ConfigManager.textSkip = data.index === 0 ? true : false; break; case 1: ConfigManager.textSkip = data.index === 0 ? true : false; break;
case 3: ConfigManager.battleLogSpeed = data.index; ;break; case 2: ConfigManager.battleLogSpeed = data.index; ;break;
case 4: ConfigManager.alwaysDash = data.index === 0 ? true : false ;break; case 3: ConfigManager.alwaysDash = data.index === 0 ? true : false ;break;
// OMORI RUS mod specific: // OMORI RUS mod specific:
case 5: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break; case 4: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
}; };
}; };