Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/MapSize.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/MapSize.js
Show All 25 Lines | GameSettingControls.MapSize = class MapSize extends GameSettingControlDropdown | ||||
getAutocompleteEntries() | getAutocompleteEntries() | ||||
{ | { | ||||
return g_MapSizes.Name; | return g_MapSizes.Name; | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.mapSize.setSize(g_MapSizes.Tiles[itemIdx]); | g_GameSettings.mapSize.setSize(g_MapSizes.Tiles[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.MapSize.prototype.TitleCaption = | GameSettingControls.MapSize.prototype.TitleCaption = | ||||
translate("Map Size"); | translate("Map Size"); | ||||
GameSettingControls.MapSize.prototype.Tooltip = | GameSettingControls.MapSize.prototype.Tooltip = | ||||
translate("Select map size. (Larger sizes may reduce performance.)"); | translate("Select map size. (Larger sizes may reduce performance.)"); | ||||
GameSettingControls.MapSize.prototype.AutocompleteOrder = 0; | GameSettingControls.MapSize.prototype.AutocompleteOrder = 0; |
Wildfire Games · Phabricator