Ticket #3440: t3440_fix_main_menu_entry_offset_v1.patch

File t3440_fix_main_menu_entry_offset_v1.patch, 2.3 KB (added by elexis, 9 years ago)

The last menu entry touched is off by 4 pixels. Noticed by niektb.

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

     
    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"
    414414            style="MainMenuPanel"
    415415            size="60 -2 300 100%+2"
    416416            z="50"
    417417        >
    418418            <!-- These are used to make the right side blend in with the submenu -->
    419419            <object name="MainMenuPanelRightBorderTop"
    420420                type="image"
    421421                sprite="MainMenuPanelRightBorder"
    422422                ghost="true"
    423423                size="100%-2 0 100% 100%"
    424424            />