Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/loading/TitleDisplay.js
/** | /** | ||||
* This class choses the title of the loading screen page. | * This class choses the title of the loading screen page. | ||||
*/ | */ | ||||
class TitleDisplay | class TitleDisplay | ||||
{ | { | ||||
constructor(data) | constructor(data) | ||||
{ | { | ||||
let loadingMapName = Engine.GetGUIObjectByName("loadingMapName"); | let loadingMapName = Engine.GetGUIObjectByName("loadingMapName"); | ||||
loadingMapName.caption = sprintf( | loadingMapName.caption = sprintf( | ||||
data.attribs.mapType == "random" ? this.Generating : this.Loading, | data.attribs.mapType == "random" ? this.Generating : this.Loading, | ||||
{ "map": translate(data.attribs.settings.Name) }); | { "map": translate(data.attribs.settings.mapName) }); | ||||
} | } | ||||
} | } | ||||
TitleDisplay.prototype.Generating = translate("Generating “%(map)s”"); | TitleDisplay.prototype.Generating = translate("Generating “%(map)s”"); | ||||
TitleDisplay.prototype.Loading = translate("Loading “%(map)s”"); | TitleDisplay.prototype.Loading = translate("Loading “%(map)s”"); |
Wildfire Games · Phabricator