From 6151c65c8f619ce24f66b576787f43e5d750e9f9 Mon Sep 17 00:00:00 2001
From: Image-unavailable <56268917+Image-unavailable@users.noreply.github.com>
Date: Sat, 10 Sep 2022 13:22:19 +0200
Subject: [PATCH 1/3] Fix collisions between bool props with same name
---
CHANGELOG.md | 1 +
.../widgets/boolean-widget/boolean-widget.component.html | 7 +++++--
.../widgets/boolean-widget/boolean-widget.component.ts | 3 +++
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9f8ac134..54bbde14 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fixed compatibility with the newer Electron versions.
- Enemy editing popup no longer bugs out when editing enemies inside event steps.
- Fixed copy-pasting of `IF` steps and other steps with branches.
+- Fixed buggy behaviour when two checkboxes that refer to properties with the same name are visible at the same time ([#240](https://github.com/CCDirectLink/crosscode-map-editor/issues/240)).
## [0.14.0] 2022-05-28
- Add coordinate display for the cursor in entity view
diff --git a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
index 67c518c4..482d2fe1 100644
--- a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
+++ b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
@@ -1,6 +1,9 @@
-
-
+
+
+
diff --git a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.ts b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.ts
index b88236f5..17839935 100644
--- a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.ts
+++ b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.ts
@@ -7,6 +7,9 @@ import {AbstractWidget} from '../abstract-widget';
styleUrls: ['./boolean-widget.component.scss', '../widget.scss']
})
export class BooleanWidgetComponent extends AbstractWidget {
+ private static counter = 1;
+ uid = BooleanWidgetComponent.counter++;
+
constructor() {
super();
}
From 3a2dab95ba6e813b071585f82d4dc39cce5900f8 Mon Sep 17 00:00:00 2001
From: Image-unavailable <56268917+Image-unavailable@users.noreply.github.com>
Date: Tue, 11 Oct 2022 17:37:39 +0200
Subject: [PATCH 2/3] Remove ids from widgets
---
CHANGELOG.md | 8 +++++++-
.../widgets/boolean-widget/boolean-widget.component.html | 3 +--
.../enemy-type-widget/enemy-type-widget.component.html | 2 +-
.../widgets/event-widget/event-widget.component.html | 2 +-
.../shared/widgets/json-widget/json-widget.component.html | 3 +--
.../langlabel-widget/langlabel-widget.component.html | 6 ++----
.../npc-states-widget/npc-states-widget.component.html | 2 +-
.../npc-states/npc-states.component.html | 8 ++++----
.../widgets/number-widget/number-widget.component.html | 4 ++--
.../person-expression-widget.component.html | 4 ++--
.../widgets/string-widget/string-widget.component.html | 5 +----
.../shared/widgets/vec2-widget/vec2-widget.component.html | 8 ++++----
12 files changed, 27 insertions(+), 28 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02be9c3a..e4841496 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
+
+### Fixed
+- Fixed buggy behaviour when two checkboxes that refer to properties with the same name are visible at the same time ([#240](https://github.com/CCDirectLink/crosscode-map-editor/issues/240)).
+
+### Changed
+- Clicking the label of a property now no longer selects the input for that property.
+
## [0.16.0] 2022-10-03
## [0.15.1] 2022-09-28
@@ -21,7 +28,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Enemy editing popup no longer bugs out when editing enemies inside event steps.
- Fixed copy-pasting of `IF` steps and other steps with branches.
- Fixed inability to edit certain `String` properties of various event and action steps.
-- Fixed buggy behaviour when two checkboxes that refer to properties with the same name are visible at the same time ([#240](https://github.com/CCDirectLink/crosscode-map-editor/issues/240)).
### Changed
- `String` inputs for event steps, action steps, and entity properties, as well as the map creation dialog now also allow values different from the suggested ones.
diff --git a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
index 482d2fe1..f8b5543c 100644
--- a/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
+++ b/webapp/src/app/shared/widgets/boolean-widget/boolean-widget.component.html
@@ -1,9 +1,8 @@
\ No newline at end of file
diff --git a/webapp/src/app/shared/widgets/string-widget/string-widget.component.html b/webapp/src/app/shared/widgets/string-widget/string-widget.component.html
index 21018195..299b6b98 100644
--- a/webapp/src/app/shared/widgets/string-widget/string-widget.component.html
+++ b/webapp/src/app/shared/widgets/string-widget/string-widget.component.html
@@ -1,8 +1,7 @@