mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 06:13:55 -07:00
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/gui/[c-p]*
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
17 lines
494 B
JavaScript
17 lines
494 B
JavaScript
/**
|
|
* This class choses the title of the loading screen page.
|
|
*/
|
|
class TitleDisplay
|
|
{
|
|
constructor(data)
|
|
{
|
|
const 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”");
|