Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/functions_utility.js
/** | /** | ||||
* Used for acoustic GUI notifications. | * Used for acoustic GUI notifications. | ||||
* Define the soundfile paths and specific time thresholds (avoid spam). | * Define the soundfile paths and specific time thresholds (avoid spam). | ||||
* And store the timestamp of last interaction for each notification. | * And store the timestamp of last interaction for each notification. | ||||
*/ | */ | ||||
var g_SoundNotifications = { | var g_SoundNotifications = { | ||||
"nick": { "soundfile": "audio/interface/ui/chat_alert.ogg", "threshold": 3000 } | "nick": { "soundfile": "audio/interface/ui/chat_alert.ogg", "threshold": 3000 } | ||||
}; | }; | ||||
/** | /** | ||||
* Use this human readable delimiter to separate array values, that are concatenated to a string | |||||
* into a user config setting in the user config file. | |||||
* This works also for nicknames in the lobby to our lobby policy. | |||||
*/ | |||||
var g_ConfigListDelimiter = ","; | |||||
/** | |||||
* Returns translated history and gameplay data of all civs, optionally including a mock gaia civ. | * Returns translated history and gameplay data of all civs, optionally including a mock gaia civ. | ||||
*/ | */ | ||||
function loadCivData(selectableOnly, gaia) | function loadCivData(selectableOnly, gaia) | ||||
{ | { | ||||
let civData = loadCivFiles(selectableOnly); | let civData = loadCivFiles(selectableOnly); | ||||
translateObjectKeys(civData, ["Name", "Description", "History", "Special"]); | translateObjectKeys(civData, ["Name", "Description", "History", "Special"]); | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator