Ticket #3440: t3440_fix_main_menu_entry_add_warning_v2.patch

File t3440_fix_main_menu_entry_add_warning_v2.patch, 3.0 KB (added by elexis, 9 years ago)

Adds a warning to the main menu entry, that it might take some time to load initially.

  • binaries/data/mods/public/gui/pregame/mainmenu.xml

     
    337337                    tooltip_style="pgToolTip"
    338338                >
    339339                    <translatableAttribute id="caption">Language</translatableAttribute>
    340340                    <translatableAttribute id="tooltip">Choose the language of the game.</translatableAttribute>
    341341                    <action on="Press">
    342342                        <![CDATA[
    343343                        closeMenu();
    344344                        Engine.PushGuiPage("page_locale.xml");
    345345                        ]]>
    346346                    </action>
    347347                </object>
    348348
    349349                <object name="submenuReplayButton"
    350350                    type="button"
    351351                    style="StoneButtonFancy"
    352352                    size="0 64 100% 92"
    353353                    tooltip_style="pgToolTip"
    354354                >
    355355                    <translatableAttribute id="caption">Replays</translatableAttribute>
    356                     <translatableAttribute id="tooltip">Playback previous games.</translatableAttribute>
     356                    <translatableAttribute id="tooltip">Playback previous games. Warning: Could take some time to load initially.</translatableAttribute>
    357357                    <action on="Press">
    358358                        closeMenu();
    359359                        Engine.SwitchGuiPage("page_replaymenu.xml");
    360360                    </action>
    361361                </object>
    362362
    363363                <object name="submenuEditorButton"
    364364                    style="StoneButtonFancy"
    365365                    type="button"
    366366                    size="0 96 100% 124"
    367367                    tooltip_style="pgToolTip"
    368368                >
    369369                    <translatableAttribute id="caption">Scenario Editor</translatableAttribute>
    370370                    <translatableAttribute id="tooltip">Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument &quot;-editor&quot;.</translatableAttribute>
    371371                    <action on="Press">
    372372                        pressedScenarioEditorButton();
    373373                    </action>
    374374                </object>
    375375
    376376                <object name="submenuWelcomeScreenButton"
    377377                    style="StoneButtonFancy"
    378378                    type="button"
    379379                    size="0 128 100% 156"
    380380                    tooltip_style="pgToolTip"
    381381                >
    382382                    <translatableAttribute id="caption">Welcome Screen</translatableAttribute>
    383383                    <translatableAttribute id="tooltip">Show the Welcome Screen. Useful if you hid it by mistake.</translatableAttribute>
    384384                    <action on="Press">
    385385                        <![CDATA[
    386386                        closeMenu();
    387387                        Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen", callback : "SplashScreenClosedCallback" } );
    388388                        ]]>
    389389                    </action>
    390390                </object>
    391391                <object name="submenuModSelection"
    392392                    style="StoneButtonFancy"
    393393                    type="button"
    394                     size="0 156 100% 188"
     394                    size="0 160 100% 188"
    395395                    tooltip_style="pgToolTip"
    396396                >
    397397                    <translatableAttribute id="caption">Mod Selection</translatableAttribute>
    398398                    <translatableAttribute id="tooltip">Select mods to use.</translatableAttribute>
    399399                    <action on="Press">
    400400                        Engine.SwitchGuiPage("page_modmod.xml", {});
    401401                    </action>
    402402                </object>
    403403            </object>
    404404        </object><!-- end of submenu -->
    405405
    406406
    407407        <!--
    408408        ==========================================
    409409        - MAIN MENU PANEL
    410410        ==========================================
    411411        -->
    412412        <object name="mainMenu"
    413413            type="image"