From a335d3cd8d2cd8017dfff6d0544e4cbea43e8c2c Mon Sep 17 00:00:00 2001 From: Thomas Cruveilher <38007824+Sorikairox@users.noreply.github.com> Date: Tue, 4 Nov 2025 06:18:36 +0900 Subject: [PATCH] fix(replay): change text to 'replay speed' when watching a replay #2357 (#2365) Before, the condition was "if it's not singleplayer", but replays are counted as singleplayer game for some reason (will need to fix the underlying issue) so it wasn't robust enough Now the condition is based on are we in replay or not,. ## Description: Related to issue https://github.com/openfrontio/OpenFrontIO/issues/2357 I cannot get to replay games locally for some reason (client just throws an error that it cannot load the lobby), so I made sure that the singleplayer text did not change (at least no regression) cf screenshot: Screenshot 2025-11-02 at 17 46 57 ## 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: sorikairo --- src/client/graphics/layers/ReplayPanel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/graphics/layers/ReplayPanel.ts b/src/client/graphics/layers/ReplayPanel.ts index e68288596..9c465fb6f 100644 --- a/src/client/graphics/layers/ReplayPanel.ts +++ b/src/client/graphics/layers/ReplayPanel.ts @@ -70,9 +70,9 @@ export class ReplayPanel extends LitElement implements Layer { @contextmenu=${(e: Event) => e.preventDefault()} >
${this.renderSpeedButton(ReplaySpeedMultiplier.slow, "×0.5")}