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


Ignore:
Timestamp:
08/22/11 19:36:53 (13 years ago)
Author:
brian
Message:

More work on main menu, and added new button style

Location:
ps/trunk/binaries/data/mods/public
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/art/textures/ui/global/button/textures.xml

    r8102 r10061  
    33  <!-- Use RGBA for some small files that have ugly DXT artifacts -->
    44  <File pattern="button_wood.*" format="rgba"/>
     5  <File pattern="button_stone.*" format="rgba"/>
    56</Textures>
  • ps/trunk/binaries/data/mods/public/gui/page_pregame.xml

    r7653 r10061  
    55    <include>common/sprite1.xml</include>
    66    <include>common/init.xml</include>
     7
     8<include>common/menu_sprites.xml</include>
     9<include>common/menu_styles.xml</include>
     10
    711    <include>pregame/sprites.xml</include>
    812    <include>pregame/styles.xml</include>
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml

    r10058 r10061  
    4141
    4242        <object name="pgToolTip"
    43             style="fancyTextHeadWhite"
     43            style="stoneTooltip"
    4444            type="text"
    4545            hidden="true"
    46             sprite="bkTranslucent"
    47             size="69% 6.3802% 97.0703125% 28.125%"
     46            size="70% 5% 100% 30%"
    4847        >tooltipText
    49         </object>       
    50 
    51 
     48        </object>
    5249
    5350        <!--
     
    6057                        style="wheatExit"
    6158                        size="100%-16 0 100% 16"
    62                         tooltip_style="pgToolTip"
    63                         tooltip="Exit Game"
     59                        tooltip=""
    6460                >
    6561                        <action on="Press"><![CDATA[
     
    7066        </object>
    7167
    72 
    7368        <!--
    7469        ==========================================
    75         - MAIN PANEL MENU - PARCHMENT BUTTONS
     70        - MAIN MENU PANEL
    7671        ==========================================
    7772        -->
    7873        <object
    7974            type="image"
    80             sprite="bkTranslucent"
    81             size="50 0 300 100%"
     75            style="stoneWindow"
     76            size="50 0 322 100%"
    8277                >
    83                         <object name="pgProductLogo"
    84                                 style="pgButton"
    85                                 type="button"
     78                        <object name="productLogo"
     79                                type="image"
    8680                                ghost="true"
    87                                 size="20 2% 240 2%+100"
    88                                 sprite="pgProductLogo"
    89                         >
    90                         </object>
     81                                size="50%-110 20 50%+110 120"
     82                                sprite="productLogo"
     83                        />
    9184                       
    9285                        <object
    93                                 size="0 2%+120 100% 2%+320"
    94                                 type="image"
    95                                 sprite="bkTranslucent"
     86                                size="4 2%+120 100%-4 2%+320"
    9687                        >
    97                               <object name="pgLearnToPlayBt"
     88                <object name="menuLearnToPlayButton"
    9889                                      type="button"
    99                                       style="wheatButton"
     90                                      style="stoneButton"
    10091                                      size="4 4 100%-4 36"
    10192                                      tooltip_style="pgToolTip"
    10293                                      tooltip="The 0 A.D. Game Manual"
    103                               >
     94                >
    10495                                        Learn To Play
    10596                                        <action on="Press"><![CDATA[
     
    10899                               </object>
    109100                           
    110                                <object name="pgSinglePlayerBt"
    111                                        style="wheatButton"
     101                               <object name="menuSinglePlayerButton"
     102                                       style="stoneButton"
    112103                                       type="button"
    113104                                       size="4 36 100%-4 68"
     
    122113                                </object>
    123114                               
    124                                 <object name="pgMultiPlayerBt"
    125                                         style="wheatButton"
     115                                <object name="menuMultiPlayerButton"
     116                                        style="stoneButton"
    126117                                        type="button"
    127118                                        size="4 68 100%-4 100"
     
    136127                                </object>
    137128
    138                                 <object name="pgEditorBt"
    139                                         style="wheatButton"
     129                                <object name="menuEditorButton"
     130                                        style="stoneButton"
    140131                                        type="button"
    141132                                        size="4 100 100%-4 132"
     
    152143                                </object>
    153144                               
    154                                 <object name="pgOptionsBt"
    155                                         style="wheatButton"
     145                                <object name="menuOptionsButton"
     146                                        style="stoneButton"
    156147                                        type="button"
    157148                                        size="4 132 100%-4 164"
     
    168159                               
    169160                                <!-- EXIT BUTTON -->
    170                                 <object name="pgExit"
     161                                <object name="menuExitButton"
    171162                                        type="button"
    172                                         style="wheatButton"
     163                                        style="stoneButton"
    173164                                        size="4 164 100%-4 196"
    174165                                        tooltip_style="pgToolTip"
     
    183174                                </object>
    184175
    185 <!--                        <object name="pgCampaignsBt"
    186                                        style="wheatButton"
     176<!--                        <object name="menuCampaignsButton"
     177                                       style="stoneButton"
    187178                                       type="button"
    188179                                       size="4 36 100%-4 68"
     
    197188                        </object>
    198189-->
    199 <!--                        <object name="pgHistoryBt"
    200                                 style="wheatButton"
     190<!--                        <object name="menuHistoryButton"
     191                                style="stoneButton"
    201192                                type="button"
    202193                                size="4 36 100%-4 68"
     
    212203-->
    213204                        </object>
    214                        
    215                 <object size="0 50%+30 100% 50%+240"
     205
     206            <!-- PRE-RELEASE INFO -->
     207            <object size="4 50%+30 100%-4 50%+240"
    216208                type="image"
    217                 sprite="bkTranslucent"
     209                style="stoneTooltip"
    218210            >
    219211                <!-- PRE-RELEASE WARNING -->
     
    234226                <!-- CONTACT METHODS -->
    235227                    <object type="button"
    236                         style="wheatButton"
     228                        style="stoneButton"
    237229                        size="4 100%-36 50%-2 100%-4"
    238230                    >
     
    246238
    247239                        <object type="button"
    248                                 style="wheatButton"
     240                                style="stoneButton"
    249241                                size="50%+2 100%-36 100%-4 100%-4"
    250242                        >
     
    258250            </object>
    259251
    260                         <!-- VERSION -->
    261                         <object name="pgVersionNumber"
    262                                 style="fancyTextHeadGold"
    263                                 type="text"
    264                                 ghost="true"
    265                                 size="2 100%-56 100%-2 100%"
     252            <!-- LOGO AND BUILD VERSION -->
     253            <object
     254                                size="4 100%-128 100%-4 100%-56"
    266255                        >
    267                                 <action on="Load"><![CDATA[
    268                                         this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
    269                                 ]]></action>
    270                         </object>
     256                <!-- COMPANY LOGO -->
     257                        <object name="companyLogo"
     258                                type="image"
     259                                ghost="true"
     260                                size="50%-24 0 50%+24 48"
     261                                sprite="companyLogo"
     262                        />
     263
     264                <!-- COMPANY NAME -->
     265                        <object
     266                    type="text"
     267                                style="logoText"
     268                                size="50%-128 52 50%+128 64"
     269                >WILDFIRE GAMES</object>
     270            </object>
     271
     272                <!-- VERSION -->
     273                <object name="versionNumber"
     274                    style="menuCenteredText"
     275                    type="text"
     276                    ghost="true"
     277                    size="50%-128 100%-56 50%+128 100%"
     278            >
     279                <action on="Load"><![CDATA[
     280                    this.caption = "Build: " + buildTime(0) + " - " + buildTime(2);
     281                ]]></action>
     282            </object>
     283                       
    271284                </object>
    272285
Note: See TracChangeset for help on using the changeset viewer.