Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/replaymenu/replay_filters.js
Show All 10 Lines | var g_DurationFilterIntervals = [ | ||||
{ "min": 90, "max": 120 }, | { "min": 90, "max": 120 }, | ||||
{ "min": 120, "max": -1 } | { "min": 120, "max": -1 } | ||||
]; | ]; | ||||
/** | /** | ||||
* Allow to filter by population capacity. | * Allow to filter by population capacity. | ||||
*/ | */ | ||||
const g_PopulationCapacities = prepareForDropdown(g_Settings && g_Settings.PopulationCapacities); | const g_PopulationCapacities = prepareForDropdown(g_Settings && g_Settings.PopulationCapacities); | ||||
const g_WorldPopulationCapacities = prepareForDropdown(g_Settings && g_Settings.WorldPopulationCapacities); | |||||
/** | /** | ||||
* Reloads the selectable values in the filters. The filters depend on g_Settings and g_Replays | * Reloads the selectable values in the filters. The filters depend on g_Settings and g_Replays | ||||
* (including its derivatives g_MapSizes, g_MapNames). | * (including its derivatives g_MapSizes, g_MapNames). | ||||
*/ | */ | ||||
function initFilters(filters) | function initFilters(filters) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("compatibilityFilter").checked = !filters || filters.compatibility === undefined || filters.compatibility; | Engine.GetGUIObjectByName("compatibilityFilter").checked = !filters || filters.compatibility === undefined || filters.compatibility; | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator