From 33f862a5e7398b0e85482eac8bd2f8bf3ba70904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=97=D0=BB=20=D0=93=D1=80=D0=B8?= =?UTF-8?q?=D0=B3=D0=BE=D1=80=27=D1=94=D0=B2?= Date: Sun, 25 Jul 2021 15:21:11 +0300 Subject: [PATCH] Respect "offerHints" in puzzle editor --- src/js/game/modes/puzzle_edit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/game/modes/puzzle_edit.js b/src/js/game/modes/puzzle_edit.js index e3d2e40d..556de71d 100644 --- a/src/js/game/modes/puzzle_edit.js +++ b/src/js/game/modes/puzzle_edit.js @@ -55,7 +55,10 @@ export class PuzzleEditGameMode extends PuzzleGameMode { MetaTransistorBuilding, ]; - this.additionalHudParts.puzzleEditorControls = HUDPuzzleEditorControls; + if (this.root.app.settings.getAllSettings().offerHints) { + this.additionalHudParts.puzzleEditorControls = HUDPuzzleEditorControls; + } + this.additionalHudParts.puzzleEditorReview = HUDPuzzleEditorReview; this.additionalHudParts.puzzleEditorSettings = HUDPuzzleEditorSettings; }