Ticket #2501: Mainmenu.diff

File Mainmenu.diff, 1.0 KB (added by Stan, 10 years ago)

Added a button in the main menu

  • .xml

    old new  
    530530                        messageBox(450, 200, "Opening "+url+"\n in default web browser. Please wait...", "Opening page", 2);
    531531                    ]]></action>
    532532                </object>
     533                <object type="button"
     534                    style="StoneButton"
     535                    tooltip_style="pgToolTip"
     536                    size="8 100%-108 100%-8 100% -80"
     537                >
     538                    <translatableAttribute id="caption">Help with the translation !</translatableAttribute>
     539                    <translatableAttribute id="tooltip">Click to open the 0 A.D translate page in your brownser</translatableAttribute>
     540                    <action on="Press"><![CDATA[
     541                        var url = "https://www.transifex.com/organization/wildfire-games/";
     542                        Engine.OpenURL(url);
     543                        messageBox(450, 200, "Opening "+url+"\n in default web browser. Please wait...", "Opening page", 2);
     544                    ]]></action>
     545                </object>
    533546
    534547                <object type="button"
    535548                    style="StoneButton"