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

Adds tracking for rotation per building type.

Adds a setting to go back to one global base rotation.
This commit is contained in:
Magnus Grimstvedt Saltnes
2020-06-18 22:18:32 +02:00
parent 4f747a1fc5
commit c7f8b50d13
3 changed files with 56 additions and 19 deletions

View File

@@ -248,9 +248,10 @@ export const allApplicationSettings = [
new BoolSetting("alwaysMultiplace", categoryGame, (app, value) => {}),
new BoolSetting("enableTunnelSmartplace", categoryGame, (app, value) => {}),
new BoolSetting("vignette", categoryGame, (app, value) => {}),
new BoolSetting("vignette", categoryGame, (app, value) => {}),<<<<<<< HEAD
new BoolSetting("compactBuildingInfo", categoryGame, (app, value) => {}),
new BoolSetting("disableCutDeleteWarnings", categoryGame, (app, value) => {}),
new BoolSetting("rotationByBuilding", categoryGame, (app, value) => {}),
];
export function getApplicationSettingById(id) {
@@ -277,6 +278,8 @@ class SettingsStorage {
this.vignette = true;
this.compactBuildingInfo = false;
this.disableCutDeleteWarnings = false;
this.rotationByBuilding = true;
this.enableColorBlindHelper = false;
@@ -527,6 +530,7 @@ export class ApplicationSettings extends ReadWriteProxy {
}
if (data.version < 13) {
<<<<<<< HEAD
data.settings.compactBuildingInfo = false;
data.version = 13;
}
@@ -550,6 +554,11 @@ export class ApplicationSettings extends ReadWriteProxy {
if (data.version < 17) {
data.settings.enableColorBlindHelper = false;
data.version = 17;
=======
data.settings.rotationByBuilding = true;
data.version = 13;
>>>>>>> 655c356... Adds tracking for rotation per building type.
}
return ExplainedResult.good();