Fix in-game options menu
This commit is contained in:
parent
0d335b1786
commit
bc89b1f1ff
2 changed files with 9 additions and 13 deletions
|
@ -249,23 +249,19 @@ Window_OmoMenuOptionsGeneral.prototype.processOptionCommand = function() {
|
|||
// 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;
|
||||
case 1:
|
||||
ConfigManager.gamepadTips = data.index === 0 ? false : true;
|
||||
console.log(ConfigManager.gamepadTips);
|
||||
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;
|
||||
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 6: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
|
||||
case 5: ConfigManager.rusCoverInBadEnding = data.index === 0 ? true : false; break;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ function localStorageImplementation() {
|
|||
return {
|
||||
readSaveFileUTF8(path) {
|
||||
console.log(`Failed to get externalStorage. Using localStorage to read save at ${path}`);
|
||||
return atob(localStorage.getItem(path));
|
||||
return localStorage.getItem(path);
|
||||
},
|
||||
|
||||
saveFileExists(path) {
|
||||
|
@ -19,7 +19,7 @@ function localStorageImplementation() {
|
|||
|
||||
writeSaveFileUTF8(path, data) {
|
||||
console.log(`Failed to get externalStorage. Writing ${path} save file to the localStorage`);
|
||||
localStorage.setItem(path, btoa(data));
|
||||
localStorage.setItem(path, data);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue