mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-26 17:59:21 +00:00
Changed name of setting to "abortPlacementOnDeletion".
This commit is contained in:
parent
58ce3bcff3
commit
b8bc895906
@ -131,12 +131,12 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
||||
if (
|
||||
button === enumMouseButton.right &&
|
||||
(!this.currentMetaBuilding.get() ||
|
||||
this.root.app.settings.getSetting("deletingDoesntClearCursor"))
|
||||
!this.root.app.settings.getSetting("abortPlacementOnDeletion"))
|
||||
) {
|
||||
this.currentlyDragging = true;
|
||||
this.currentlyDeleting = true;
|
||||
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
||||
if (!this.root.app.settings.getSetting("deletingDoesntClearCursor")) {
|
||||
if (this.root.app.settings.getSetting("abortPlacementOnDeletion")) {
|
||||
this.currentMetaBuilding.set(null);
|
||||
}
|
||||
return STOP_PROPAGATION;
|
||||
@ -443,7 +443,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
||||
if (cancelAction) {
|
||||
if (
|
||||
this.currentMetaBuilding.get() &&
|
||||
!this.root.app.settings.getSetting("deletingDoesntClearCursor")
|
||||
this.root.app.settings.getSetting("abortPlacementOnDeletion")
|
||||
) {
|
||||
this.currentMetaBuilding.set(null);
|
||||
} else {
|
||||
|
||||
@ -116,7 +116,7 @@ export const allApplicationSettings = [
|
||||
}),
|
||||
|
||||
new BoolSetting("alwaysMultiplace", categoryGame, (app, value) => { }),
|
||||
new BoolSetting("deletingDoesntClearCursor", categoryGame, (app, value) => {}),
|
||||
new BoolSetting("abortPlacementOnDeletion", categoryGame, (app, value) => { }),
|
||||
new BoolSetting("offerHints", categoryGame, (app, value) => { }),
|
||||
];
|
||||
|
||||
@ -135,7 +135,7 @@ class SettingsStorage {
|
||||
this.refreshRate = "60";
|
||||
|
||||
this.alwaysMultiplace = false;
|
||||
this.deletingDoesntClearCursor = false;
|
||||
this.abortPlacementOnDeletion = true;
|
||||
this.offerHints = true;
|
||||
|
||||
/**
|
||||
@ -318,7 +318,7 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
}
|
||||
|
||||
if (data.version < 8) {
|
||||
data.settings.deletingDoesntClearCursor = false;
|
||||
data.settings.abortPlacementOnDeletion = true;
|
||||
data.version = 8;
|
||||
}
|
||||
|
||||
|
||||
@ -542,10 +542,10 @@ settings:
|
||||
description: >-
|
||||
If enabled, all buildings will stay selected after placement until you cancel it. This is equivalent to holding SHIFT permanently.
|
||||
|
||||
deletingDoesntClearCursor:
|
||||
title: Deleting doesn't clear cursor
|
||||
abortPlacementOnDeletion:
|
||||
title: Abort Placement on Deletion
|
||||
description: >-
|
||||
If enabled, buildings will stay selected when you are deleting objects, until you manually cancel it.
|
||||
If enabled, building placement will be aborted whenever you try to delete a building.
|
||||
|
||||
offerHints:
|
||||
title: Hints & Tutorials
|
||||
|
||||
Loading…
Reference in New Issue
Block a user