From 9089de959b80341ba3a1cd2393beba88253f5567 Mon Sep 17 00:00:00 2001
From: Shaan <39768960+shaan150@users.noreply.github.com>
Date: Mon, 2 Jun 2025 19:30:18 +0100
Subject: [PATCH] =?UTF-8?q?Synced=20the=20single=20player=20and=20host=20f?=
=?UTF-8?q?iles=20together,=20and=20fix=20issue=20withc=E2=80=A6=20(#991)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Description:
This is a UI fix that addresses the issue where the nuke related options
were not able to be deselected in private lobby's, these are now able to
done.
## Please complete the following:
- [x] I have added screenshots for all UI updates
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
## Please put your Discord username so you can be contacted if a bug or
regression is found:
Shaan160
Fixes #989

---
src/client/HostLobbyModal.ts | 67 ++++---------------
src/client/SinglePlayerModal.ts | 56 ++++------------
src/client/utilities/RenderUnitTypeOptions.ts | 48 +++++++++++++
3 files changed, 75 insertions(+), 96 deletions(-)
create mode 100644 src/client/utilities/RenderUnitTypeOptions.ts
diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts
index d532ef3a4..6e12a4ad3 100644
--- a/src/client/HostLobbyModal.ts
+++ b/src/client/HostLobbyModal.ts
@@ -19,6 +19,7 @@ import "./components/Difficulties";
import { DifficultyDescription } from "./components/Difficulties";
import "./components/Maps";
import { JoinLobbyEvent } from "./Main";
+import { renderUnitTypeOptions } from "./utilities/RenderUnitTypeOptions";
@customElement("host-lobby-modal")
export class HostLobbyModal extends LitElement {
@@ -314,59 +315,10 @@ export class HostLobbyModal extends LitElement {