Changes between Initial Version and Version 1 of Ticket #6433


Ignore:
Timestamp:
Feb 16, 2022, 10:01:08 AM (2 years ago)
Author:
Langbart
Comment:

additional comment on the file causing the problem

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6433 – Description

    initial v1  
    1818The issue can be noticed for the first time with changeset [26393]
    1919[[Image(change_26393.jpg, 600px, center)]]
     20
     21
     22==== File causing issues
     23Line 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
     26Index: 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}}}