mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Allow disabling zoom towards cursor
This commit is contained in:
@@ -258,6 +258,7 @@ export const allApplicationSettings = [
|
||||
|
||||
new BoolSetting("enableMousePan", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("alwaysMultiplace", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("zoomToCursor", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("clearCursorOnDeleteWhilePlacing", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("enableTunnelSmartplace", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("vignette", enumCategories.userInterface, (app, value) => {}),
|
||||
@@ -322,6 +323,7 @@ class SettingsStorage {
|
||||
this.disableTileGrid = false;
|
||||
this.lowQualityTextures = false;
|
||||
this.simplifiedBelts = false;
|
||||
this.zoomToCursor = true;
|
||||
|
||||
/**
|
||||
* @type {Object.<string, number>}
|
||||
@@ -532,7 +534,7 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
}
|
||||
|
||||
getCurrentVersion() {
|
||||
return 28;
|
||||
return 29;
|
||||
}
|
||||
|
||||
/** @param {{settings: SettingsStorage, version: number}} data */
|
||||
@@ -665,6 +667,11 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
data.version = 28;
|
||||
}
|
||||
|
||||
if (data.version < 29) {
|
||||
data.settings.zoomToCursor = true;
|
||||
data.version = 29;
|
||||
}
|
||||
|
||||
return ExplainedResult.good();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user