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 9947 for ps


Ignore:
Timestamp:
08/01/11 02:41:24 (13 years ago)
Author:
brian
Message:

A very rough attempt at the new main menu style.

File:
1 edited

Legend:

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

    r9616 r9947  
    2323            onTick();
    2424        </action>
    25 
    26         <!--
    27         ==========================================
    28         - MAIN MENU - PRE-RELEASE WARNING
    29         ==========================================
    30         -->
    31 
    32         <object
    33             style="fancyTextHeadWhite"
    34             type="text"
    35             sprite="bkTranslucent"
    36             textcolor="255 255 0"
    37             size="4 24 220 230"
    38 >[font="serif-bold-16"]Alpha version[/font]
    39 Warning: This is an early development version of the game and many features have not been added yet, but we hope this gives you a glimpse of the game’s vision.
    40 
    41 Watch for updates or get involved in the development: http://wildfiregames.com/0ad/
    42         </object>
    4325
    4426        <!--
     
    5840        </object>       
    5941
     42
     43
    6044        <!--
    6145        ==========================================
    62         - MAIN MENU - RANDOM BUTTONS
     46        - MAIN PANEL MENU - PARCHMENT BUTTONS
    6347        ==========================================
    6448        -->
    6549       
    66         <object size="100%-400 0 100% 30">
    67             <object type="button" style="wheatButton" size="0 0 100 30">
    68                 Manual
    69                 <action on="Press"><![CDATA[
    70                     Engine.PushGuiPage("page_manual.xml", { "page": "intro" });
    71                 ]]></action>
    72             </object>
    73 
    74             <object type="button" style="wheatButton" size="100 0 200 30">
    75                 Website
    76                 <action on="Press"><![CDATA[
    77                     var url = "http://wildfiregames.com/0ad/";
    78                     Engine.OpenURL(url);
    79                     messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
    80                 ]]></action>
    81             </object>
    82 
    83             <object type="button" style="wheatButton" size="200 0 300 30">
    84                 IRC
    85                 <action on="Press"><![CDATA[
    86                     var url = "http://webchat.quakenet.org/?channels=0ad";
    87                     Engine.OpenURL(url);
    88                     messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
    89                 ]]></action>
    90             </object>
    91 
    92             <!-- MAIN MENU - EXIT BUTTON -->
    93             <object type="button" style="wheatButton" name="pgExit" size="300 0 400 30">
    94                 Quit
    95                 <action on="Press"><![CDATA[
    96                     var btCaptions = ["Yes", "No"];
    97                     var btCode = [exit, null];
    98                     messageBox (400, 200, "Are you sure you want to quit [icon=iconProduct] A.D.?", "Confirmation", 0, btCaptions, btCode);
    99                 ]]></action>
    100             </object>
    101         </object>
    102 
    103         <!--
    104         ==========================================
    105         - MAIN MENU - PARCHMENT BUTTONS
    106         ==========================================
    107         -->
    108 
     50   
     51        <object
     52            type="image"
     53            sprite="bkTranslucent"
     54            size="60 0 310 100%"
     55                >
     56                        <object name="pgProductLogo"
     57                                style="pgButton"
     58                                type="button"
     59                                ghost="true"
     60                                size="20 40 240 140"
     61                                sprite="pgProductLogo"
     62                        >
     63                        </object>
     64                       
     65                        <object
     66                                size="0 170 100% 400"
     67                                type="image"
     68                                sprite="bkTranslucent"
     69                        >
     70                           
     71                              <object name="pgLearnToPlayBt"
     72                                      type="button"
     73                                      style="wheatButton"
     74                                      size="4 4 100%-4 36"
     75                                      tooltip_style="pgToolTip"
     76                                      tooltip="The 0 A.D. Game Manual"
     77                              >
     78                                        Learn To Play
     79                                        <action on="Press"><![CDATA[
     80                                                Engine.PushGuiPage("page_manual.xml", { "page": "intro" });
     81                                        ]]></action>
     82                               </object>
     83                           
     84                           
     85                               <object name="pgSinglePlayerBt"
     86                                       style="wheatButton"
     87                                       type="button"
     88                                       size="4 36 100%-4 68"
     89                                       tooltip_style="pgToolTip"
     90                                       tooltip="Click here to start a new single player game. (A very basic computer opponent is available for testing purposes.)"
     91                                >
     92                                    Single Player
     93                                    <action on="Press"><![CDATA[
     94                                            // Open Session Setup window.
     95                                            Engine.PushGuiPage("page_gamesetup.xml", { type: "offline" });
     96                                    ]]></action>
     97                                </object>
     98                               
     99                                <object name="pgMultiPlayerBt"
     100                                        style="wheatButton"
     101                                        type="button"
     102                                        size="4 68 100%-4 100"
     103                                        tooltip_style="pgToolTip"
     104                                        tooltip="Tired of playing with yourself? Fight against one or more human players in a multiplayer game."
     105                                >
     106                                        Multiplayer
     107                                        <action on="Press"><![CDATA[
     108                                                // Open Multiplayer connection window.
     109                                                Engine.PushGuiPage("page_gamesetup_mp.xml");
     110                                        ]]></action>
     111                                </object>
     112
     113                                <object name="pgEditorBt"
     114                                        style="wheatButton"
     115                                        type="button"
     116                                        size="4 100 100%-4 132"
     117                                        tooltip_style="pgToolTip"
     118                                        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;."
     119                                >
     120                                        Scenario Editor
     121                                        <action on="Press"><![CDATA[
     122                                                if (Engine.AtlasIsAvailable())
     123                                                        Engine.RestartInAtlas();
     124                                                else
     125                                                        messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2);
     126                                        ]]></action>
     127                                </object>
     128                               
     129                                <object name="pgOptionsBt"
     130                                        style="wheatButton"
     131                                        type="button"
     132                                        size="4 132 100%-4 164"
     133                                        tooltip_style="pgToolTip"
     134                                        tooltip="This will take you to the options menu.  It does not work now, but someday it will."
     135                                        enabled="false"
     136                                >
     137                                        Options
     138                                        <action on="Press"><![CDATA[
     139                                                // Open Options window.
     140                                                openMainMenuSubWindow ("pgOptions");
     141                                        ]]></action>
     142                                </object>
     143                               
     144                                <!-- EXIT BUTTON -->
     145                                <object name="pgExit"
     146                                        type="button"
     147                                        style="wheatButton"
     148                                        size="4 164 100%-4 196"
     149                                        tooltip_style="pgToolTip"
     150                                        tooltip="Exit Game"
     151                                >
     152                                        Quit
     153                                        <action on="Press"><![CDATA[
     154                                                var btCaptions = ["Yes", "No"];
     155                                                var btCode = [exit, null];
     156                                                messageBox (400, 200, "Are you sure you want to quit [icon=iconProduct] A.D.?", "Confirmation", 0, btCaptions, btCode);
     157                                        ]]></action>
     158                                </object>
     159                               
     160<!--                        <object name="pgCampaignsBt"
     161                                       style="wheatButton"
     162                                       type="button"
     163                                       size="4 36 100%-4 68"
     164                                       tooltip_style="pgToolTip"
     165                                       tooltip="Want to play a campaign? Unfortunately you'll have to wait as they're not yet implemented."
     166                                       enabled="false"
     167                               >
     168                                    Historical Campaigns
     169                            <action on="Press"><![CDATA[
     170                                    openMainMenuSubWindow ("pgCampaigns");
     171                            ]]></action>
     172                        </object>
     173-->
     174<!--                        <object name="pgHistoryBt"
     175                                style="wheatButton"
     176                                type="button"
     177                                size="4 36 100%-4 68"
     178                                tooltip_style="pgToolTip"
     179                                tooltip="One day you will click this button and learn more about ancient history than any history teacher ever taught you."
     180                                enabled="false"
     181                        >
     182                                History
     183                                <action on="Press"><![CDATA[
     184                                        openMainMenuSubWindow ("pgHistory");
     185                                ]]></action>
     186                        </object>
     187-->
     188                        </object>
     189                       
     190                        <!-- CONTACT METHODS -->
     191                        <object size="0 100%-340 100% 100%-300">
     192                                <object type="button"
     193                                        style="wheatButton"
     194                                        size="4 0 50%-2 36"
     195                                >
     196                                        Website
     197                                        <action on="Press"><![CDATA[
     198                                                var url = "http://wildfiregames.com/0ad/";
     199                                                Engine.OpenURL(url);
     200                                                messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
     201                                        ]]></action>
     202                                </object>
     203
     204                                <object type="button"
     205                                        style="wheatButton"
     206                                        size="50%+2 0 100%-4 36"
     207                                >
     208                                        IRC
     209                                        <action on="Press"><![CDATA[
     210                                                var url = "http://webchat.quakenet.org/?channels=0ad";
     211                                                Engine.OpenURL(url);
     212                                                messageBox(400, 200, "Opening "+url+" in default web browser. Please wait...", "Opening page", 2);
     213                                        ]]></action>
     214                                </object>
     215                        </object>
     216                       
     217                        <!-- PRE-RELEASE WARNING -->
     218                        <object
     219                                style="fancyTextHeadWhite"
     220                                type="text"
     221                                sprite="bkTranslucent"
     222                                textcolor="255 255 0"
     223                                size="0 100%-280 100% 100%-64"
     224>[font="serif-bold-16"]Alpha version[/font]
     225Warning: This is an early development version of the game and many features have not been added yet, but we hope this gives you a glimpse of the game’s vision.
     226
     227Watch for updates or get involved in the development: http://wildfiregames.com/0ad/
     228                        </object>
     229                       
     230                        <!-- VERSION -->
     231                        <object name="pgVersionNumber"
     232                                style="fancyTextHeadGold"
     233                                type="text"
     234                                ghost="true"
     235                                size="2 100%-64 100%-2 100%-2"
     236                        >
     237                                <action on="Load"><![CDATA[
     238                                        this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
     239                                ]]></action>
     240                        </object>
     241                </object>
     242       
     243<!--
    109244        <object name="pgCampaignsBt"
    110245            style="pgButton"
     
    193328            ]]></action>
    194329        </object>
     330-->
     331
     332
     333             
     334
     335
     336
    195337
    196338        <!--
     
    199341        ==========================================
    200342        -->
    201 
     343<!--
    202344        <object name="pgProductLogo"
    203345            style="pgButton"
     
    255397            ]]></action>
    256398        </object>
    257 
     399-->
    258400        <!--
    259401        ==========================================
     
    261403        ==========================================
    262404        -->
    263 
     405<!--
    264406        <object name="pgCompanyLogo"
    265407            style="pgButton"
     
    275417            ]]></action>
    276418        </object>
    277 
     419-->
    278420        <!--
    279421        ==========================================
     
    284426        <object
    285427            name="userReportDisabled"
    286             size="4 300 304 450"
     428            size="100%-300 300 100% 450"
    287429            type="image"
    288430            style="userReportPanel"
     
    307449        <object
    308450            name="userReportEnabled"
    309             size="4 300 304 590"
     451            size="100%-304 300 100%-4 590"
    310452            type="image"
    311453            style="userReportPanel"
     
    376518        ===============================================
    377519        -->
    378 
     520<!--
    379521        <object name="pgCampaigns"
    380522            style="wheatWindow"
     
    397539                ]]></action>
    398540            </object>
    399            
     541-->     
    400542            <!-- Add campaign screen controls here later -->
    401            
     543<!--       
    402544        </object>
    403 
     545-->
    404546        <!--
    405547        ===============================================
     
    407549        ===============================================
    408550        -->
    409 
     551<!--
    410552        <object name="pgOptions"
    411553            style="wheatWindow"
     
    429571                ]]></action>
    430572            </object>
    431 
     573-->
    432574            <!--
    433575            ===============================================
     
    435577            ===============================================
    436578            -->
    437 
     579<!--
    438580            <object name="pgOptionsAudioWindow"
    439581                style="wheatBorderBlack"
     
    466608                    ]]></action>   
    467609                </object>
    468 
     610-->
    469611                <!--
    470612                ===============================================
     
    472614                ===============================================
    473615                -->
    474 
     616<!--
    475617                <object name="pgOptionsAudioMusicGainTitle"
    476618                    style="wheatTextLabelBlack"
     
    546688                    ]]></action>   
    547689                </object>
    548 
     690-->
    549691                <!--
    550692                ===============================================
     
    552694                ===============================================
    553695                -->
    554 
     696<!--
    555697                <object name="pgOptionsAudioSoundGainTitle"
    556698                    style="wheatTextLabelBlack"
     
    622764                    ]]></action>   
    623765                </object>
    624 
     766-->
    625767                <!--
    626768                ===============================================
     
    628770                ===============================================
    629771                -->
    630 
     772<!--
    631773                <object name="pgOptionsAudioAmbientGainTitle"
    632774                    style="wheatTextLabelBlack"
     
    698840                    ]]></action>   
    699841                </object>
    700 
     842-->
    701843                <!--
    702844                ===============================================
     
    704846                ===============================================
    705847                -->
    706 
     848<!--
    707849                <object name="pgOptionsAudioVoiceGainTitle"
    708850                    style="wheatTextLabelBlack"
     
    775917
    776918            </object>
    777 
     919-->
    778920            <!--
    779921            ===============================================
     
    781923            ===============================================
    782924            -->
    783 
     925<!--
    784926            <object name="pgOptionsVideoWindow"
    785927                style="wheatBorderBlack"
     
    789931            >
    790932
    791 
     933-->
    792934                <!--
    793935                ===============================================
     
    795937                ===============================================
    796938                -->
    797 
     939<!--
    798940
    799941                <object name="pgOptionsVideoResolutionTitle"
     
    823965                    ]]></action>
    824966                </object>
    825 
     967-->
    826968
    827969                <!--
     
    830972                ===============================================
    831973                -->
    832 
     974<!--
    833975
    834976                <object name="pgOptionsVideoDetailTitle"
     
    857999                    ]]></action>
    8581000                </object>
    859 
     1001-->
    8601002                <!--
    8611003                ===============================================
     
    8631005                ===============================================
    8641006                -->
    865 
     1007<!--
    8661008                <object name="pgOptionsVideoTextureTitle"
    8671009                    style="wheatTextLabelBlack"
     
    8891031                    ]]></action>
    8901032                </object>
    891 
     1033-->
    8921034                <!--
    8931035                ===============================================
     
    8951037                ===============================================
    8961038                -->
    897 
     1039<!--
    8981040                <object name="pgOptionsVideoAnimationTitle"
    8991041                    style="wheatTextLabelBlack"
     
    9211063                    ]]></action>
    9221064                </object>
    923 
     1065-->
    9241066                <!--
    9251067                ===============================================
     
    9271069                ===============================================
    9281070                -->
    929 
     1071<!--
    9301072                <object name="pgOptionsVideoEffectsTitle"
    9311073                    style="wheatTextLabelBlack"
     
    9531095                    ]]></action>
    9541096                </object>
    955 
     1097-->
    9561098                <!--
    9571099                ===============================================
     
    9591101                ===============================================
    9601102                -->
    961 
     1103<!--
    9621104                <object name="pgOptionsVideoWeatherTitle"
    9631105                    style="wheatTextLabelBlack"
     
    9851127                    ]]></action>
    9861128                </object>
    987 
     1129-->
    9881130                <!--
    9891131                ===============================================
     
    9911133                ===============================================
    9921134                -->
    993 
     1135<!--
    9941136                <object name="pgOptionsVideoWaterTitle"
    9951137                    style="wheatTextLabelBlack"
     
    10171159                    ]]></action>
    10181160                </object>
    1019 
     1161-->
    10201162                <!--
    10211163                ===============================================
     
    10231165                ===============================================
    10241166                -->
    1025 
     1167<!--
    10261168                <object name="pgOptionsVideoWaterTerrain"
    10271169                    style="wheatTextLabelBlack"
     
    10491191                    ]]></action>
    10501192                </object>
    1051 
     1193-->
    10521194                <!--
    10531195                ===============================================
     
    10551197                ===============================================
    10561198                -->
    1057 
     1199<!--
    10581200                <object name="pgOptionsVideoShadowTitle"
    10591201                    style="wheatTextLabelBlack"
     
    10811223                    ]]></action>
    10821224                </object>
    1083 
     1225-->
    10841226                <!--
    10851227                ===============================================
     
    10871229                ===============================================
    10881230                -->
    1089 
     1231<!--
    10901232                <object name="pgOptionsVideoBloodTitle"
    10911233                    style="wheatTextLabelBlack"
     
    11061248                >
    11071249                </object>
    1108 
     1250-->
    11091251
    11101252                <!--
     
    11131255                ===============================================
    11141256                -->
    1115 
     1257<!--
    11161258                <object name="pgOptionsVideoSystemInfoButton"
    11171259                    style="wheatButton"
     
    11271269
    11281270            </object>
    1129            
     1271-->
    11301272            <!--
    11311273            ===============================================
     
    11331275            ===============================================
    11341276            -->
    1135 
     1277<!--
    11361278            <object name="pgOptionsGameWindow"
    11371279                style="wheatBorderBlack"
     
    11401282                size="1% 4% 99% 90%"
    11411283            >
    1142 
     1284-->
    11431285                <!--
    11441286                ===============================================
     
    11461288                ===============================================
    11471289                -->
    1148 
     1290<!--
    11491291                <object name="pgOptionsGameMouseTitle"
    11501292                    style="wheatTextLabelBlack"
     
    11741316
    11751317            </object>
    1176 
     1318-->
    11771319            <!--
    11781320            ===============================================
     
    11801322            ===============================================
    11811323            -->
    1182 
     1324<!--
    11831325            <object name="pgOptionsAudioButton"
    11841326                style="wheatButton"
     
    12161358                ]]></action>
    12171359            </object>
    1218            
     1360-->
    12191361            <!--
    12201362            ===============================================
     
    12221364            ===============================================
    12231365            -->
    1224 
     1366<!--
    12251367            <object name="pgOptionsOKButton"
    12261368                style="wheatButton"
     
    12391381                ]]></action>
    12401382            </object>
    1241 
     1383-->
    12421384            <!--
    12431385            ===============================================
     
    12451387            ===============================================
    12461388            -->
    1247 
     1389<!--
    12481390            <object name="pgOptionsCancelButton"
    12491391                style="wheatButton"
     
    12601402           
    12611403        </object>                       
    1262 
     1404-->
    12631405        <!--
    12641406        ===============================================
     
    12661408        ===============================================
    12671409        -->
    1268 
     1410<!--
    12691411        <object name="pgHistory"
    12701412            style="wheatWindow"
     
    12881430            </object>
    12891431        </object>
    1290 
     1432-->
    12911433        <!--
    12921434        ===============================================
     
    12941436        ===============================================
    12951437        -->
    1296 
     1438<!--
    12971439        <object name="pgCredits"
    12981440            style="fancyTextHeadWhite"
     
    13081450            ]]></action>
    13091451        </object>
    1310        
     1452-->
    13111453    </object>
    13121454</objects>
Note: See TracChangeset for help on using the changeset viewer.