forked from mirrors/0ad
071fddd598
Fixing issues in dc18d94030
Everyone make sure to delete savegames, saved campaigns an most
importantly your matchsettings.json's (regular alpha players won't
notice since there is a version check, but if you already have your
stuff at A26/svn, you will have some issues)
Reported By: elexis
Comments By: wraitii, Freagarach
Differential Revision: D4240
This was SVN commit r26393.
18 lines
492 B
JavaScript
18 lines
492 B
JavaScript
/**
|
|
* This class choses the title of the loading screen page.
|
|
*/
|
|
class TitleDisplay
|
|
{
|
|
constructor(data)
|
|
{
|
|
let loadingMapName = Engine.GetGUIObjectByName("loadingMapName");
|
|
loadingMapName.caption = sprintf(
|
|
data.attribs.mapType == "random" ? this.Generating : this.Loading,
|
|
{ "map": translate(data.attribs.settings.mapName) });
|
|
}
|
|
}
|
|
|
|
TitleDisplay.prototype.Generating = translate("Generating “%(map)s”");
|
|
|
|
TitleDisplay.prototype.Loading = translate("Loading “%(map)s”");
|