Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 1,372 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Inverts the given configuration boolean and returns the current state. | * Inverts the given configuration boolean and returns the current state. | ||||
* For example "silhouettes". | * For example "silhouettes". | ||||
*/ | */ | ||||
function toggleConfigBool(configName) | function toggleConfigBool(configName) | ||||
{ | { | ||||
let enabled = Engine.ConfigDB_GetValue("user", configName) != "true"; | let enabled = Engine.ConfigDB_GetValue("user", configName) != "true"; | ||||
saveSettingAndWriteToUserConfig(configName, String(enabled)); | Engine.ConfigDB_CreateAndWriteValueToFile("user", configName, String(enabled)); | ||||
return enabled; | return enabled; | ||||
} | } | ||||
/** | /** | ||||
* Toggles the display of range overlays of selected entities for the given range type. | * Toggles the display of range overlays of selected entities for the given range type. | ||||
* @param {string} type - for example "Auras" | * @param {string} type - for example "Auras" | ||||
*/ | */ | ||||
function toggleRangeOverlay(type) | function toggleRangeOverlay(type) | ||||
▲ Show 20 Lines • Show All 367 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator