1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/gui/loading/TitleDisplay.js
T
bb 071fddd598 Remove useless persistMatchSettings and handle some which weren't handled
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.
2022-02-15 21:13:10 +00:00

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”");