Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/Daytime.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/Daytime.js
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | GameSettingControls.Daytime = class Daytime extends GameSettingControlDropdown | ||||
getAutocompleteEntries() | getAutocompleteEntries() | ||||
{ | { | ||||
return this.values && this.values.Name.slice(1); | return this.values && this.values.Name.slice(1); | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.daytime.setValue(this.values.Id[itemIdx]); | g_GameSettings.daytime.setValue(this.values.Id[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.Daytime.prototype.TitleCaption = | GameSettingControls.Daytime.prototype.TitleCaption = | ||||
translate("Daytime"); | translate("Daytime"); | ||||
GameSettingControls.Daytime.prototype.Tooltip = | GameSettingControls.Daytime.prototype.Tooltip = | ||||
translate("Select whether the match takes place at daylight or night."); | translate("Select whether the match takes place at daylight or night."); | ||||
GameSettingControls.Daytime.prototype.RandomTitle = | GameSettingControls.Daytime.prototype.RandomTitle = | ||||
translateWithContext("daytime selection", "Random"); | translateWithContext("daytime selection", "Random"); | ||||
GameSettingControls.Daytime.prototype.RandomDescription = | GameSettingControls.Daytime.prototype.RandomDescription = | ||||
translateWithContext("daytime selection", "Randomly pick a time of the day."); | translateWithContext("daytime selection", "Randomly pick a time of the day."); | ||||
GameSettingControls.Daytime.prototype.AutocompleteOrder = 0; | GameSettingControls.Daytime.prototype.AutocompleteOrder = 0; |
Wildfire Games · Phabricator