1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add potato mode

This commit is contained in:
tobspr
2020-09-19 10:34:46 +02:00
parent 7bc45d8959
commit 47443058e0
17 changed files with 834 additions and 583 deletions

View File

@@ -276,6 +276,7 @@ export const allApplicationSettings = [
new BoolSetting("lowQualityMapResources", enumCategories.performance, (app, value) => {}),
new BoolSetting("disableTileGrid", enumCategories.performance, (app, value) => {}),
new BoolSetting("lowQualityTextures", enumCategories.performance, (app, value) => {}),
new BoolSetting("simplifiedBelts", enumCategories.performance, (app, value) => {}),
];
export function getApplicationSettingById(id) {
@@ -313,6 +314,7 @@ class SettingsStorage {
this.lowQualityMapResources = false;
this.disableTileGrid = false;
this.lowQualityTextures = false;
this.simplifiedBelts = false;
/**
* @type {Object.<string, number>}
@@ -523,7 +525,7 @@ export class ApplicationSettings extends ReadWriteProxy {
}
getCurrentVersion() {
return 26;
return 27;
}
/** @param {{settings: SettingsStorage, version: number}} data */
@@ -646,6 +648,11 @@ export class ApplicationSettings extends ReadWriteProxy {
data.version = 26;
}
if (data.version < 27) {
data.settings.simplifiedBelts = false;
data.version = 27;
}
return ExplainedResult.good();
}
}