Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/gamesetup.js
Show All 11 Lines | |||||
/** | /** | ||||
* Offer users to select playable civs only. | * Offer users to select playable civs only. | ||||
* Load unselectable civs as they could appear in scenario maps. | * Load unselectable civs as they could appear in scenario maps. | ||||
*/ | */ | ||||
const g_CivData = loadCivData(false, false); | const g_CivData = loadCivData(false, false); | ||||
/** | /** | ||||
* Remember civilization opened in civilization info. | |||||
*/ | |||||
var g_CivInfo = ""; | |||||
/** | |||||
* Remember last civilization page opened history or structure tree. | |||||
*/ | |||||
var g_CivPage = ""; | |||||
/** | |||||
* Highlight the "random" dropdownlist item. | * Highlight the "random" dropdownlist item. | ||||
*/ | */ | ||||
var g_ColorRandom = "orange"; | var g_ColorRandom = "orange"; | ||||
/** | /** | ||||
* Color for regular dropdownlist items. | * Color for regular dropdownlist items. | ||||
*/ | */ | ||||
var g_ColorRegular = "white"; | var g_ColorRegular = "white"; | ||||
▲ Show 20 Lines • Show All 2,394 Lines • ▼ Show 20 Lines | for (let name in dropdown) | ||||
if (priority === undefined) | if (priority === undefined) | ||||
continue; | continue; | ||||
autocomplete[priority] = (autocomplete[priority] || []).concat(dropdown[name].labels()); | autocomplete[priority] = (autocomplete[priority] || []).concat(dropdown[name].labels()); | ||||
} | } | ||||
g_Autocomplete = Object.keys(autocomplete).sort().reverse().reduce((all, priority) => all.concat(autocomplete[priority]), []); | g_Autocomplete = Object.keys(autocomplete).sort().reverse().reduce((all, priority) => all.concat(autocomplete[priority]), []); | ||||
} | } | ||||
function rememberCiv(data) | |||||
{ | |||||
g_CivInfo = data !== undefined && data.civ ? data.civ : ""; | |||||
g_CivPage = data !== undefined && data.page ? data.page : ""; | |||||
} |
Wildfire Games · Phabricator