Settings
constSettings:object
Defined in: client/api.d.ts:5353
The player’s OWN game settings, the same values the pause menu writes. These are a preference, not a scratchpad: write them only where the player asked for it (a settings panel), and reach for Audio.setState/setRTPC when a gamemode wants to duck audio for a moment. Those compose on top of the preference instead of overwriting it, so nothing has to be put back afterwards. Display, resolution and input rebinds are deliberately absent.
Type Declaration
Section titled “Type Declaration”getAccessibility()
Section titled “getAccessibility()”getAccessibility():
object
The accessibility page. arachnophobia is the game’s Arachnophobia Mode, the pause menu’s own checkbox, which changes how spiders look and sound.
Returns
Section titled “Returns”object
arachnophobia
Section titled “arachnophobia”arachnophobia:
boolean|null
getAudio()
Section titled “getAudio()”getAudio():
object
The audio page of the player’s settings. Volumes are 0..1. A field is null when the game would not report it, which is every field before the settings object exists.
Returns
Section titled “Returns”object
effects
Section titled “effects”effects:
number|null
menuReaderEnabled
Section titled “menuReaderEnabled”menuReaderEnabled:
boolean|null
menuReaderVolume
Section titled “menuReaderVolume”menuReaderVolume:
number|null
mono:
boolean|null
music:
number|null
muted:
boolean|null
subtitles
Section titled “subtitles”subtitles:
boolean|null
voice:
number|null
getHud()
Section titled “getHud()”getHud():
object
The HUD and minimap page: minimal, notifications, specialNotifications, xp, mission, tutorial, spell, map, meters, beacons, target, targetName, targetHighlights, toolWheel, enemyDamage, beastControls (boolean|null each), minimapSize (number|null), minimapOpacity (number|null, 0..1), minimapPath (boolean|null).
Returns
Section titled “Returns”object
setAccessibility()
Section titled “setAccessibility()”setAccessibility(
patch,options?):number
Writes the accessibility page. Applies live, as the pause menu’s checkbox does. Player-driven only: a gamemode must never switch Arachnophobia Mode off for a player who turned it on.
Parameters
Section titled “Parameters”Any subset of getAccessibility()’s fields.
arachnophobia?
Section titled “arachnophobia?”boolean
options?
Section titled “options?”As setAudio.
persist?
Section titled “persist?”boolean
Returns
Section titled “Returns”number
How many keys were applied.
setAudio()
Section titled “setAudio()”setAudio(
patch,options?):number
Writes the audio page. Player-driven only; see the namespace note.
Parameters
Section titled “Parameters”object
Any subset of getAudio()’s fields. Volumes are clamped to 0..1; absent fields are left alone.
options?
Section titled “options?”persist = true writes the player’s saved settings for real, which is what a settings panel wants. Default false applies for this run only — but the game saves on its own schedule too, so do not rely on false to keep a change out of the ini.
persist?
Section titled “persist?”boolean
Returns
Section titled “Returns”number
How many keys were applied; compare against how many you passed.
setHud()
Section titled “setHud()”setHud(
patch,options?):number
Writes the HUD page. To hide UI for a cutscene or a duel this is the wrong tool — it edits what the player chose and would have to be undone afterwards.
Parameters
Section titled “Parameters”object
Any subset of getHud()’s fields.
options?
Section titled “options?”As setAudio.
persist?
Section titled “persist?”boolean
Returns
Section titled “Returns”number
How many keys were applied.