Skip to content

five-on-it / apps/client/src/ui/settings

apps/client/src/ui/settings ​

The player's settings, kept in this browser (localStorage, foi.settings) and edited on the main menu's and the pause menu's Settings screen (SettingsPanel.tsx): the sound (the volume of the whole, the music, the effects and the radio, the radio coming on in a car, the radio kept on foot through earbuds), the controls (how far the view leans toward the cursor on foot, the wheel's direction through the targets) and the display (the HUD shown or not, the minimap's size, the camera's height, the camera zooming out at speed, how far and how quickly, how long texts stay on screen, the night's light); and, edited where they are used on the main menu, the platform's address (Play online) and the address last joined (Play local → Join); and the radio station last picked, kept where it is tuned (audio/radio.ts). A value that is out of range or of the wrong kind falls back to its default; storage that is missing or refuses (a private window) leaves the defaults, never an error.

The settings are a Store: the game reads them every frame and the panels write them; every write is saved.

Interfaces ​

Type Aliases ​

Variables ​

Functions ​