Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/MapType.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/MapType.js
Show All 37 Lines | GameSettingControls.MapType = class MapType extends GameSettingControlDropdown | ||||
getAutocompleteEntries() | getAutocompleteEntries() | ||||
{ | { | ||||
return g_MapTypes.Title; | return g_MapTypes.Title; | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.map.setType(g_MapTypes.Name[itemIdx]); | g_GameSettings.map.setType(g_MapTypes.Name[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.MapType.prototype.TitleCaption = | GameSettingControls.MapType.prototype.TitleCaption = | ||||
translate("Map Type"); | translate("Map Type"); | ||||
GameSettingControls.MapType.prototype.Tooltip = | GameSettingControls.MapType.prototype.Tooltip = | ||||
translate("Select a map type."); | translate("Select a map type."); | ||||
GameSettingControls.MapType.prototype.AutocompleteOrder = 0; | GameSettingControls.MapType.prototype.AutocompleteOrder = 0; |
Wildfire Games · Phabricator