Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 826 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"; | ||||
Engine.ConfigDB_CreateAndWriteValueToFile("user", configName, String(enabled), "config/user.cfg"); | Engine.ConfigDB_CreateAndSaveValue("user", configName, String(enabled)); | ||||
return enabled; | return enabled; | ||||
} | } | ||||
// Update the additional list of entities to be highlighted. | // Update the additional list of entities to be highlighted. | ||||
function updateAdditionalHighlight() | function updateAdditionalHighlight() | ||||
{ | { | ||||
let entsAdd = []; // list of entities units to be highlighted | let entsAdd = []; // list of entities units to be highlighted | ||||
let entsRemove = []; | let entsRemove = []; | ||||
Show All 38 Lines |
Wildfire Games · Phabricator