Skip to content

Commit 0421c4e

Browse files
authored
Refreshed images for the help modal and other little optimizations ✨ (#2897)
## Description: 1. Changed default difficulty in singleplayer / host lobby to Easy (to synchronize the settings with the public lobby settings) 2. Switch bot count in singleplayer / host lobby to 100 after selecting "compact map" (to synchronize the settings with the public lobby settings) (and back to 400 after deselcting) 3. Some little padding optimizations, for example for the modal title: <img width="961" height="190" alt="Screenshot 2026-01-14 163837" src="https://github.com/user-attachments/assets/1ecca3e9-8daf-4bed-a75a-c8e840051601" /> 4. Refreshed images for the help page: ![infoMenu2](https://github.com/user-attachments/assets/dc0c49c1-b970-47e5-a188-56fefc2e1c90) ![infoMenu2Ally](https://github.com/user-attachments/assets/c6c49a2c-eec6-44ae-877e-b8bdd2ab8caf) ![playerInfoOverlay](https://github.com/user-attachments/assets/1c6c2fc0-ecc5-4946-a7a7-35b90c13790a) ![controlPanel](https://github.com/user-attachments/assets/3d10fbf7-fbff-46af-b02a-9bb390dd9955) ![eventsPanelAttack](https://github.com/user-attachments/assets/04af2c91-6be1-458f-bf13-f4ddaf247d8a) ![eventsPanel](https://github.com/user-attachments/assets/517ad982-b001-4a36-9dfd-84a7ca1e0162) ![leaderboard2](https://github.com/user-attachments/assets/8956d053-682f-4055-9fe9-a36b066b1ce3) ## Please complete the following: - [X] I have added screenshots for all UI updates - [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: FloPinguin
1 parent c8c97ab commit 0421c4e

File tree

14 files changed

+23
-11
lines changed

14 files changed

+23
-11
lines changed
-11.5 KB
Loading
-54.9 KB
Loading
-7.67 KB
Loading
-63.7 KB
Loading
-70.3 KB
Loading
-40 KB
Loading
-33.2 KB
Loading

src/client/HelpModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class HelpModal extends BaseModal {
110110
})}
111111
112112
<div
113-
class="prose prose-invert prose-sm max-w-none overflow-y-auto px-6 pb-6 mr-1
113+
class="prose prose-invert prose-sm max-w-none overflow-y-auto px-6 py-3 mr-1
114114
[&_a]:text-blue-400 [&_a:hover]:text-blue-300 transition-colors
115115
[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mb-4 [&_h1]:text-white [&_h1]:border-b [&_h1]:border-white/10 [&_h1]:pb-2
116116
[&_h2]:text-xl [&_h2]:font-bold [&_h2]:mt-6 [&_h2]:mb-3 [&_h2]:text-blue-200

src/client/HostLobbyModal.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import randomMap from "/images/RandomMap.webp?url";
3939
@customElement("host-lobby-modal")
4040
export class HostLobbyModal extends BaseModal {
4141
@state() private selectedMap: GameMapType = GameMapType.World;
42-
@state() private selectedDifficulty: Difficulty = Difficulty.Medium;
42+
@state() private selectedDifficulty: Difficulty = Difficulty.Easy;
4343
@state() private disableNations = false;
4444
@state() private gameMode: GameMode = GameMode.FFA;
4545
@state() private teamCount: TeamCountConfig = 2;
@@ -944,7 +944,7 @@ export class HostLobbyModal extends BaseModal {
944944

945945
// Reset all transient form state to ensure clean slate
946946
this.selectedMap = GameMapType.World;
947-
this.selectedDifficulty = Difficulty.Medium;
947+
this.selectedDifficulty = Difficulty.Easy;
948948
this.disableNations = false;
949949
this.gameMode = GameMode.FFA;
950950
this.teamCount = 2;
@@ -1058,6 +1058,11 @@ export class HostLobbyModal extends BaseModal {
10581058

10591059
private handleCompactMapChange = (val: boolean) => {
10601060
this.compactMap = val;
1061+
if (val && this.bots === 400) {
1062+
this.bots = 100;
1063+
} else if (!val && this.bots === 100) {
1064+
this.bots = 400;
1065+
}
10611066
this.putGameConfig();
10621067
};
10631068

src/client/NewsModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class NewsModal extends BaseModal {
2828
ariaLabel: translateText("common.back"),
2929
})}
3030
<div
31-
class="pt-2 prose prose-invert prose-sm max-w-none overflow-y-auto px-6 pb-6 mr-1
31+
class="prose prose-invert prose-sm max-w-none overflow-y-auto px-6 py-3 mr-1
3232
[&_a]:text-blue-400 [&_a:hover]:text-blue-300 transition-colors
3333
[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mb-4 [&_h1]:text-white [&_h1]:border-b [&_h1]:border-white/10 [&_h1]:pb-2
3434
[&_h2]:text-xl [&_h2]:font-bold [&_h2]:mt-6 [&_h2]:mb-3 [&_h2]:text-blue-200

0 commit comments

Comments
 (0)