| 20 | |
| 21 | |
| 22 | ==== File causing issues |
| 23 | Line 11 in the file `gui/loading/TitleDisplay.js` has been changed. If I undo the change, the problem for the `autostart` command is no longer reproducible, but the normal GUI game setup within the app is broken. I don't know how to solve the problem, waiting for big brain (bb). |
| 24 | |
| 25 | {{{#!diff |
| 26 | Index: ps/trunk/binaries/data/mods/public/gui/loading/TitleDisplay.js |
| 27 | =================================================================== |
| 28 | --- ps/trunk/binaries/data/mods/public/gui/loading/TitleDisplay.js (revision 26392) |
| 29 | +++ ps/trunk/binaries/data/mods/public/gui/loading/TitleDisplay.js (revision 26393) |
| 30 | @@ -1,17 +1,17 @@ |
| 31 | /** |
| 32 | * This class choses the title of the loading screen page. |
| 33 | */ |
| 34 | class TitleDisplay |
| 35 | { |
| 36 | constructor(data) |
| 37 | { |
| 38 | let loadingMapName = Engine.GetGUIObjectByName("loadingMapName"); |
| 39 | loadingMapName.caption = sprintf( |
| 40 | data.attribs.mapType == "random" ? this.Generating : this.Loading, |
| 41 | - { "map": translate(data.attribs.settings.Name) }); |
| 42 | + { "map": translate(data.attribs.settings.mapName) }); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | TitleDisplay.prototype.Generating = translate("Generating “%(map)s”"); |
| 47 | |
| 48 | TitleDisplay.prototype.Loading = translate("Loading “%(map)s”"); |
| 49 | }}} |