Files
OpenFrontIO/resources/lang
Zixer1andevanpelle 81d701adc4 feat(highlight): replace the small-player highlight toggle with a strength slider (#4588)
Replaces the "Highlight small players" on/off toggle with a **0-500%
Strength slider** controlling the glow's **width** (0 = off, 100% = the
previous default).

- `UserSettings`: `highlightSmallPlayers()`/toggle →
`highlightGlowStrength()`/set, float-backed, clamped to [0, 5].
- `SmallPlayerGlowPass` takes the strength via a setter (pushed by
`ClientGameRunner` on the settings-changed event), so it stays a pure
consumer and the slider still updates live while the settings modal has
the sim paused. Width = a non-linear blur-iteration count; intensity
compensated so wider stays about as bright.
- `MapRenderer` persists the strength across a WebGL context restore.
- `SettingsModal`: the toggle row becomes a range input.

Behavior note: with the toggle gone the glow **defaults ON at 100%**
(old toggle defaulted OFF); can default to 0 (opt-in) if preferred.

- [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
2026-07-16 10:38:50 -07:00
..
2025-06-30 19:49:42 -07:00
2026-05-31 19:55:50 -07:00
2026-03-02 10:54:37 -08:00
2026-06-28 16:28:48 +01:00
2026-06-28 16:28:48 +01:00
2026-04-17 17:31:43 -07:00
2026-02-11 14:42:59 -08:00
2026-02-11 14:42:59 -08:00
2026-06-28 16:28:48 +01:00
2025-06-30 19:49:42 -07:00
2026-03-02 10:54:37 -08:00
2026-06-28 16:28:48 +01:00
2025-09-30 11:10:34 -07:00
2026-06-28 16:28:48 +01:00
2025-09-07 19:54:22 -07:00
2025-07-13 07:09:42 +00:00
2026-06-28 16:28:48 +01:00
2026-04-17 17:31:43 -07:00
2025-06-30 19:49:42 -07:00
2026-06-28 16:28:48 +01:00
2026-03-02 10:54:37 -08:00
2025-09-30 11:10:34 -07:00
2026-02-11 14:42:59 -08:00
2026-02-11 14:42:59 -08:00
2025-09-07 19:54:22 -07:00
2026-06-28 16:28:48 +01:00
2025-09-07 19:54:22 -07:00
2025-10-17 14:27:47 -07:00
2025-08-09 23:57:10 -04:00
2025-06-30 19:49:42 -07:00
2026-02-11 14:42:59 -08:00
2026-06-28 16:28:48 +01:00
2026-06-28 16:28:48 +01:00