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


Ignore:
Timestamp:
08/24/11 06:16:37 (13 years ago)
Author:
brian
Message:

Update styles to match mockup better

Location:
ps/trunk/binaries/data/mods/public
Files:
2 added
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/common/common_sprites.xml

    r10076 r10085  
    1212        <image  texture="pregame/shell/logo/0ad_logo.png"
    1313            real_texture_placement="0 0 256 128"
    14             size="0 0 100% 100%"
     14            size="0 -5% 100% 105%"
    1515        />
    1616    </sprite>
     
    1818    <sprite name="companyLogo">
    1919        <image  texture="pregame/shell/logo/wfg_logo_white.png"
    20             real_texture_placement="0 0 48 48"
    21             size="0 0 100% 100%"
     20            real_texture_placement="0 0 32 32"
     21        />
     22    </sprite>
     23
     24    <!--
     25    ==========================================
     26    SHADING
     27    ==========================================
     28    -->
     29
     30    <!-- gradient -->
     31    <sprite name="BackgroundShading">
     32        <image
     33            texture="global/shading/gradient_wide.png"
     34            size="0 0 100% 100%"
    2235        />
    2336    </sprite>
     
    138151    </sprite>
    139152
    140     <!-- StonePanelThinBorder -->
    141     <sprite name="StonePanelThinBorder">
     153
     154    <!-- MainMenuPanel -->
     155    <sprite name="MainMenuPanel">
    142156        <image  texture="global/tile/stone_background.png"
     157            real_texture_placement="24 0 288 312"
     158            texture_size="0 0 224 256"
     159        />
     160
     161        <!-- sides -->
     162        <image  backcolor="230 190 80"
     163            size="2 0 100%-2 2"
     164        />
     165        <image  backcolor="230 190 80"
     166            size="100%-2 0 100% 100%"
     167        />
     168        <image  backcolor="230 190 80"
     169            size="2 100%-2 100%-2 100%"
     170        />
     171        <image  backcolor="230 190 80"
     172            size="0 0 2 100%"
     173        />
     174    </sprite>
     175
     176
     177    <!-- LargeStonePanelThinBorder -->
     178    <sprite name="LargeStonePanelThinBorder">
     179        <image  texture="global/tile/stone_background.png"
     180            real_texture_placement="0 0 312 312"
    143181            texture_size="0 0 256 256"
    144182            size="4 4 100%-4 100%-4"
     
    183221    </sprite>
    184222
     223
     224    <!-- StonePanelThinBorder -->
     225    <sprite name="StonePanelThinBorder">
     226        <image  texture="global/tile/stone_background.png"
     227            texture_size="0 0 512 512"
     228            size="4 4 100%-4 100%-4"
     229        />
     230
     231        <!-- sides -->
     232        <image  texture="global/border/line_horiz.png"
     233            texture_size="0 0 64 4"
     234            size="4 0 100%-4 4"
     235        />
     236        <image  texture="global/border/line_vert.png"
     237            texture_size="0 0 4 64"
     238            size="100%-4 4 100% 100%-4"
     239        />
     240        <image  texture="global/border/line_horiz.png"
     241            texture_size="0 0 64 4"
     242            size="4 100%-4 100%-4 100%"
     243        />
     244        <image  texture="global/border/line_vert.png"
     245            texture_size="0 0 4 64"
     246            size="0 4 4 100%-4"
     247        />
     248
     249        <!-- corners -->
     250        <image
     251            texture="global/border/line_corner_top_right.png"
     252            texture_size="0 0 4 4"
     253            size="100%-4 0 100% 4"
     254        />
     255        <image  texture="global/border/line_corner_bottom_right.png"
     256            texture_size="0 0 4 4"
     257            size="100%-4 100%-4 100% 100%"
     258        />
     259        <image  texture="global/border/line_corner_bottom_left.png"
     260            texture_size="0 0 4 4"
     261            size="0 100%-4 4 100%"
     262        />
     263        <image  texture="global/border/line_corner_top_left.png"
     264            texture_size="0 0 4 4"
     265            size="0 0 4 4"
     266        />
     267    </sprite>
     268
    185269    <!-- StonePanel -->
    186270    <sprite name="StonePanel">
    187271        <!-- background -->
    188272        <image  texture="global/tile/stone_background.png"
    189             texture_size="0 0 256 256"
     273            texture_size="0 0 512 512"
    190274            size="4 4 100%-4 100%-4"
     275        />
     276
     277        <!-- sides -->
     278        <image  texture="global/border/border-top.png"
     279            texture_size="0 0 128 16"
     280            size="16 0 100%-16 16"
     281        />
     282        <image  texture="global/border/border-right.png"
     283            texture_size="0 0 16 128"
     284            size="100%-16 16 100% 100%-16"
     285        />
     286        <image  texture="global/border/border-bottom.png"
     287            texture_size="0 0 128 16"
     288            size="16 100%-16 100%-16 100%"
     289        />
     290        <image  texture="global/border/border-left.png"
     291            texture_size="0 0 16 128"
     292            size="0 16 16 100%-16"
     293        />
     294
     295        <!-- corners -->
     296        <image  texture="global/border/border-corner.png"
     297            texture_size="0 0 16 16"
     298            size="100%-16 0 100% 16"
     299        />
     300        <image  texture="global/border/border-corner.png"
     301            texture_size="0 0 16 16"
     302            size="100%-16 100%-16 100% 100%"
     303        />
     304        <image  texture="global/border/border-corner.png"
     305            texture_size="0 0 16 16"
     306            size="0 100%-16 16 100%"
     307        />
     308        <image  texture="global/border/border-corner.png"
     309            texture_size="0 0 16 16"
     310            size="0 0 16 16"
     311        />
     312    </sprite>
     313
     314    <!-- StonePanelLight -->
     315    <sprite name="StonePanelLight">
     316        <!-- background -->
     317        <image  texture="global/tile/stone_background_light.png"
     318            texture_size="0 0 512 512"
     319            size="4 4 100%-4 100%-4"
     320        />
     321        <!-- shading -->
     322        <image
     323            texture="global/shading/gradient_wide.png"
     324            size="0 0 100% 100%"
    191325        />
    192326
  • ps/trunk/binaries/data/mods/public/gui/common/common_styles.xml

    r10075 r10085  
    33<styles>
    44
     5
     6
     7
     8
     9
     10
    511    <!--
    612    ==========================================
     
    814    ==========================================
    915    -->
     16
     17    <style name="CenteredButtonText"
     18        font="serif-bold-stroke-14"
     19        textcolor="white"
     20        text_align="center"
     21        text_valign="center"
     22    />
     23
     24    <style name="LeftButtonText"
     25        font="serif-bold-stroke-14"
     26        textcolor="white"
     27        text_align="left"
     28        text_valign="top"
     29    />
     30
     31    <style name="RightButtonText"
     32        font="serif-bold-stroke-14"
     33        textcolor="white"
     34        text_align="right"
     35        text_valign="top"
     36    />
    1037
    1138    <style name="LeftLabelText"
     
    6592    />
    6693
     94    <style name="SmallTitleText"
     95        font="serif-9"
     96        textcolor="white"
     97        text_align="center"
     98        text_valign="center"
     99    />
     100
    67101    <!--
    68102    ==========================================
     
    86120    -->
    87121
     122    <style  name="MainMenuPanel"
     123        sprite="MainMenuPanel"
     124        buffer_zone="10"
     125        text_align="left"
     126        text_valign="top"
     127    />
     128
     129    <style  name="LargeStonePanelThinBorder"
     130        sprite="LargeStonePanelThinBorder"
     131        buffer_zone="10"
     132        text_align="left"
     133        text_valign="top"
     134    />
     135
    88136    <style  name="StonePanelThinBorder"
    89137        sprite="StonePanelThinBorder"
     
    95143    <style  name="StonePanel"
    96144        sprite="StonePanel"
     145        buffer_zone="10"
     146        text_align="left"
     147        text_valign="top"
     148    />
     149
     150    <style  name="StonePanelLight"
     151        sprite="StonePanelLight"
    97152        buffer_zone="10"
    98153        text_align="left"
     
    121176        sprite_pressed="StoneButtonFancyGlow"
    122177        font="serif-bold-stroke-14"
    123         textcolor="gold"
     178        textcolor="white"
    124179        text_align="center"
    125180        text_valign="center"
     
    132187        sprite_pressed="StoneButtonGlow"
    133188        font="serif-bold-stroke-14"
    134         textcolor="gold"
     189        textcolor="white"
    135190        text_align="center"
    136191        text_valign="center"
  • ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.xml

    r10075 r10085  
    1818        </object>
    1919
    20         <object type="text" text_align="center" text_valign="center">
     20        <object type="text" style="CenteredLabelText">
    2121            Loading map data. Please wait...
    2222        </object>
     
    2424    </object>
    2525
    26     <object type="image" style="StonePanel" size="0 16 100% 100%" hidden="true" name="setupWindow">
     26    <object type="image" style="StonePanelLight" size="0 16 100% 100%" hidden="true" name="setupWindow">
    2727
    2828        <action on="Tick">
  • ps/trunk/binaries/data/mods/public/gui/loading/loading.xml

    r9193 r10085  
    1212
    1313    <!-- LOADING SCREEN BACKGROUND -->
    14     <object type="image" sprite="loadingBackground"/>
     14    <object type="image" sprite="StonePanelLight"/>
    1515   
    1616    <object size="50%-400 30 50%+400 150">
  • ps/trunk/binaries/data/mods/public/gui/loading/sprites.xml

    r10072 r10085  
    99            texture="global/tile/stone_background_light.png"
    1010            texture_size="0 0 512 512"
    11             size="0 0 100% 100%"
    12         />
    13 
    14         <!-- gradient -->
    15         <image
    16             texture="loading/gradient_wide.png"
    1711            size="0 0 100% 100%"
    1812        />
  • ps/trunk/binaries/data/mods/public/gui/page_loading.xml

    r8699 r10085  
    55    <include>common/sprite1.xml</include>
    66    <include>common/init.xml</include>
     7
     8<include>common/common_sprites.xml</include>
     9<include>common/common_styles.xml</include>
     10
    711    <include>loading/styles.xml</include>
    812    <include>loading/sprites.xml</include>
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml

    r10075 r10085  
    7373        <object
    7474            type="image"
    75             style="StonePanelThinBorder"
    76             size="50 0 322 100%"
     75            style="MainMenuPanel"
     76            size="60 -2 300 100%+2"
    7777                >
    7878                <object type="image"
    7979                                ghost="true"
    80                                 size="0 0 100% 100%"
     80                                size="4 0 100%-4 100%"
    8181                                sprite="MainMenuPanelShading"
    8282                        />
     
    8585                                type="image"
    8686                                ghost="true"
    87                                 size="50%-110 20 50%+110 120"
     87                                size="50%-110 30 50%+110 130"
    8888                                sprite="productLogo"
    8989                        />
    9090                       
    9191                        <object
    92                                 size="4 2%+120 100%-4 2%+320"
     92                                size="8 156 100%-8 356"
    9393                        >
    9494                <object name="menuLearnToPlayButton"
     
    211211
    212212            <!-- PRE-RELEASE INFO -->
    213             <object size="4 50%+30 100%-4 50%+240"
     213            <object size="8 50%+10 100%-8 50%+260"
    214214                type="image"
    215215                style="stoneTooltip"
     
    258258            <!-- LOGO AND BUILD VERSION -->
    259259            <object
    260                                 size="4 100%-128 100%-4 100%-56"
     260                                size="4 100%-84 100%-4 100%-56"
    261261                        >
    262262                <!-- COMPANY LOGO -->
     
    264264                                type="image"
    265265                                ghost="true"
    266                                 size="50%-24 0 50%+24 48"
     266                                size="50%-16 0 50%+16 32"
    267267                                sprite="companyLogo"
    268268                        />
     
    271271                        <object
    272272                    type="text"
    273                                 style="TitleText"
    274                                 size="50%-128 52 50%+128 64"
     273                                style="SmallTitleText"
     274                                size="50%-128 32 50%+128 48"
    275275                >WILDFIRE GAMES</object>
    276276            </object>
     
    278278                <!-- VERSION -->
    279279                <object name="versionNumber"
    280                     style="CenteredLabelText"
    281                     type="text"
     280                type="text"
     281                    style="SmallTitleText"
    282282                    ghost="true"
    283                     size="50%-128 100%-56 50%+128 100%"
     283                    size="50%-128 100%-36 50%+128 100%"
    284284            >
    285285                <action on="Load"><![CDATA[
  • ps/trunk/binaries/data/mods/public/gui/session/session.xml

    r10075 r10085  
    214214        <!-- ================================  ================================ -->
    215215        <object name="sessionDialog"
    216             style="StonePanel"
     216            style="StonePanelLight"
    217217            type="image"
    218218            size="50%-180 50%-200 50%+180 50%+50"
     
    277277                    tooltip_style="sessionToolTip"
    278278                >
    279                     <object name="pauseButtonText" type="text" style="CenteredLabelText" ghost="true">Pause</object>
     279                    <object name="pauseButtonText" type="text" style="CenteredButtonText" ghost="true">Pause</object>
    280280                    <action on="Press">togglePause();</action>
    281281                </object>
     
    470470        <!-- Supplemental Details Panel on Left -->
    471471        <!-- ================================  ================================ -->
    472         <object size="208 100%-170 50%-110 100%" name="supplementalSelectionDetails" type="image" style="StonePanelThinBorder" z="30">
     472        <object size="208 100%-170 50%-110 100%" name="supplementalSelectionDetails" type="image" sprite="bottomLeft" z="30">
    473473
    474474            <object name="unitFormationPanel"
     
    518518        <object name="selectionDetails"
    519519            type="image"
    520             style="StonePanelThinBorder"
     520            sprite="bottomMiddle"
    521521            size="50%-114 100%-205 50%+114 100%"
    522522            hidden="false"
     
    649649        <object name="unitCommands"
    650650            type="image"
    651             style="StonePanelThinBorder"
     651            sprite="bottomRight"
    652652            size="622 100%-170 100% 100%"
    653653            hidden="false"
  • ps/trunk/binaries/data/mods/public/gui/summary/sprites.xml

    r10072 r10085  
    33<sprites>
    44    <sprite name="bgInfoHeading">
    5         <image  backcolor="0 0 0 150" size="0 0 100% 100%" />
     5        <image  backcolor="255 255 255 30" size="0 0 100% 100%" />
    66    </sprite>
    77   
    88    <sprite name="bgInfoBox">
    9         <image  backcolor="80 80 60 120" size="0 0 100% 100%" />
     9        <image  backcolor="255 255 255 50" size="0 0 100% 100%" />
    1010    </sprite>
    1111</sprites>
  • ps/trunk/binaries/data/mods/public/gui/summary/summary.xml

    r10072 r10085  
    1313
    1414        <object type="image"
    15             style="StonePanel"
     15            style="StonePanelLight"
    1616            size="25 35 100%-25 100%-25"
    1717        >
     
    5353                <object type="text" style="TitleText" ghost="true">Resources</object>
    5454            </object>
    55             <object name="unitsBuildingsPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50">
     55            <object name="unitsBuildingsPanel" type="image" sprite="bgInfoBox" size="16 100 100%-16 100%-16">
    5656               
    5757                <object size="0 0 100% 100%-50">
     
    9797           
    9898            </object>
    99             <object name="conquestPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50" hidden="true">
     99            <object name="conquestPanel" type="image" sprite="bgInfoBox" size="16 100 100%-16 100%-16" hidden="true">
    100100               
    101101                <object size="0 0 100% 100%-50">
     
    128128           
    129129            </object>
    130             <object name="resourcesPanel" type="image" sprite="bgInfoBox" size="10 100 100%-10 100%-50" hidden="true">
     130            <object name="resourcesPanel" type="image" sprite="bgInfoBox" size="16 100 100%-16 100%-16" hidden="true">
    131131           
    132132                <object size="0 0 100% 100%-50">
Note: See TracChangeset for help on using the changeset viewer.