From 8dfa5483f3c274fca1e4ecea2ac905c87ee3a084 Mon Sep 17 00:00:00 2001
From: Sense101 <67970865+Sense101@users.noreply.github.com>
Date: Thu, 24 Jun 2021 10:21:08 +0100
Subject: [PATCH] Minor cleanups and added translation for new button
---
src/js/game/hud/parts/puzzle_editor_settings.js | 8 ++++----
src/js/game/hud/parts/puzzle_play_settings.js | 8 ++++----
translations/base-en.yaml | 1 +
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/js/game/hud/parts/puzzle_editor_settings.js b/src/js/game/hud/parts/puzzle_editor_settings.js
index 97292f62..bcd2c85c 100644
--- a/src/js/game/hud/parts/puzzle_editor_settings.js
+++ b/src/js/game/hud/parts/puzzle_editor_settings.js
@@ -45,11 +45,11 @@ export class HUDPuzzleEditorSettings extends BaseHUDPart {
-
+
-
+
`
@@ -60,8 +60,8 @@ export class HUDPuzzleEditorSettings extends BaseHUDPart {
bind(".zoneHeight .minus", () => this.modifyZone(0, -1));
bind(".zoneHeight .plus", () => this.modifyZone(0, 1));
bind("button.trim", this.trim);
- bind("button.items", this.clearItems);
- bind("button.buildings", this.clearBuildings);
+ bind("button.clearItems", this.clearItems);
+ bind("button.clearBuildings", this.clearBuildings);
}
}
diff --git a/src/js/game/hud/parts/puzzle_play_settings.js b/src/js/game/hud/parts/puzzle_play_settings.js
index 1f149313..88034f72 100644
--- a/src/js/game/hud/parts/puzzle_play_settings.js
+++ b/src/js/game/hud/parts/puzzle_play_settings.js
@@ -20,14 +20,14 @@ export class HUDPuzzlePlaySettings extends BaseHUDPart {
null,
["section"],
`
-
-
+
+
`
);
- bind("button.items", this.clearItems);
- bind("button.buildings", this.clearBuildings);
+ bind("button.clearItems", this.clearItems);
+ bind("button.clearBuildings", this.clearBuildings);
}
}
diff --git a/translations/base-en.yaml b/translations/base-en.yaml
index 80a6deb1..bf5a1890 100644
--- a/translations/base-en.yaml
+++ b/translations/base-en.yaml
@@ -632,6 +632,7 @@ ingame:
zoneHeight: Height
trimZone: Trim
clearItems: Clear Items
+ clearBuildings: Clear Buildings
share: Share
report: Report