This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10112 for ps


Ignore:
Timestamp:
08/27/11 21:36:55 (13 years ago)
Author:
brian
Message:

Fixing yet another problem: make sure the submenu closes if we click a button that doesn't use the submenu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml

    r10111 r10112  
    188188                                        Learn To Play
    189189                                        <action on="Press"><![CDATA[
     190                                                // close submenu if left open
     191                                                getGUIObjectByName("submenu").hidden = true;
     192                                                // open game manual dialog
    190193                                                Engine.PushGuiPage("page_manual.xml", { "page": "intro" });
    191194                                        ]]></action>
     
    244247                                        History
    245248                                        <action on="Press"><![CDATA[
     249                                                // close submenu if left open
     250                                                getGUIObjectByName("submenu").hidden = true;
     251                                                // open history dialog
    246252                        Engine.PushGuiPage("page_civinfo.xml");
    247253                    ]]></action>
     
    258264                                        Exit
    259265                                        <action on="Press"><![CDATA[
     266                                                // close submenu if left open
     267                                                getGUIObjectByName("submenu").hidden = true;
     268                                                // open exit dialog
    260269                                                var btCaptions = ["Yes", "No"];
    261270                                                var btCode = [exit, null];
Note: See TracChangeset for help on using the changeset viewer.