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


Ignore:
Timestamp:
08/28/11 01:17:14 (13 years ago)
Author:
brian
Message:

Made ingame resource counters use percent-based positioning. Lined up ingame bottom panel textures better. Remove old session dialog sprites.

Location:
ps/trunk/binaries/data/mods/public/gui/session
Files:
2 edited

Legend:

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

    r10114 r10115  
    357357        <!-- ================================  ================================ -->
    358358        <object
    359             size="0 0 500 100%"
     359            size="1% 0 45% 100%"
    360360        >   
    361361            <!-- Food -->
    362             <object size="0 0 80 100%" type="image" style="resourceCounter" tooltip="Food" tooltip_style="sessionToolTipBold">
     362            <object size="0 0 20% 100%" type="image" style="resourceCounter" tooltip="Food" tooltip_style="sessionToolTipBold">
    363363                <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="0"/>
    364                 <object size="36 0 100% 100%-2" type="text" style="resourceText" name="resourceFood"/>
     364                <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceFood"/>
    365365            </object>
    366366
    367367            <!-- Wood -->
    368             <object size="90 0 180 100%" type="image" style="resourceCounter" tooltip="Wood" tooltip_style="sessionToolTipBold">
     368            <object size="20% 0 40% 100%" type="image" style="resourceCounter" tooltip="Wood" tooltip_style="sessionToolTipBold">
    369369                <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="1"/>
    370                 <object size="36 0 100% 100%-2" type="text" style="resourceText" name="resourceWood"/>
     370                <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceWood"/>
    371371            </object>
    372372
    373373            <!-- Stone -->
    374             <object size="180 0 270 100%" type="image" style="resourceCounter" tooltip="Stone" tooltip_style="sessionToolTipBold">
     374            <object size="40% 0 60% 100%" type="image" style="resourceCounter" tooltip="Stone" tooltip_style="sessionToolTipBold">
    375375                <object size="0 -2 48 42" type="image" style="resourceIcon" cell_id="2"/>
    376                 <object size="36 0 100% 100%-2" type="text" style="resourceText" name="resourceStone"/>
     376                <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceStone"/>
    377377            </object>
    378378
    379379            <!-- Metal -->
    380             <object size="270 0 360 100%"  type="image" style="resourceCounter" tooltip="Metal" tooltip_style="sessionToolTipBold">
     380            <object size="60% 0 80% 100%"  type="image" style="resourceCounter" tooltip="Metal" tooltip_style="sessionToolTipBold">
    381381                <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="3"/>
    382                 <object size="36 0 100% 100%-2" type="text" style="resourceText" name="resourceMetal"/>
     382                <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceMetal"/>
    383383            </object>
    384384
    385385            <!-- Population -->
    386             <object size="360 0 450 100%" type="image" style="resourceCounter" tooltip="Population (current / limit)" tooltip_style="sessionToolTipBold">
     386            <object size="80% 0 100% 100%" type="image" style="resourceCounter" tooltip="Population (current / limit)" tooltip_style="sessionToolTipBold">
    387387                <object size="0 -6 44 38" type="image" style="resourceIcon" cell_id="4"/>
    388                 <object size="42 0 100% 100%-2" type="text" style="resourceText" name="resourcePop"/>
     388                <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourcePop"/>
    389389            </object>
    390390        </object>
  • ps/trunk/binaries/data/mods/public/gui/session/sprites.xml

    r9391 r10115  
    5858    <!-- Panel Backgrounds -->
    5959    <!-- ================================  ================================ -->
    60 
    61    
    62    
    63 
    64    
    65    
    66    
    67    
    68    
    69 
    70     <sprite name="sessionDialog">
    71         <!-- background -->
    72         <image
    73             texture="global/tile/tile_dark.png"
    74             texture_size="0 0 100% 100%"
    75             size="0 0 100% 100%"
    76         />
    77 
    78         <!-- sides -->
    79         <image
    80             texture="session/border/border-top.png"
    81             texture_size="0 0 128 16"
    82             size="16 0 100%-16 16"
    83         />
    84         <image
    85             texture="session/border/border-right.png"
    86             texture_size="0 0 16 128"
    87             size="100%-16 16 100% 100%-16"
    88         />
    89         <image
    90             texture="session/border/border-bottom.png"
    91             texture_size="0 0 128 16"
    92             size="16 100%-16 100%-16 100%"
    93         />
    94         <image
    95             texture="session/border/border-left.png"
    96             texture_size="0 0 16 128"
    97             size="0 16 16 100%-16"
    98         />
    99 
    100         <!-- corners -->
    101         <image
    102             texture="session/border/border-corner.png"
    103             texture_size="0 0 16 16"
    104             size="100%-16 0 100% 16"
    105         />
    106         <image
    107             texture="session/border/border-corner.png"
    108             texture_size="0 0 16 16"
    109             size="100%-16 100%-16 100% 100%"
    110         />
    111         <image
    112             texture="session/border/border-corner.png"
    113             texture_size="0 0 16 16"
    114             size="0 100%-16 16 100%"
    115         />
    116         <image
    117             texture="session/border/border-corner.png"
    118             texture_size="0 0 16 16"
    119             size="0 0 16 16"
    120         />
    121     </sprite>
    122    
    123    
    124    
    125    
    126     <sprite name="sessionDialogTitleBar">
    127         <image  texture="session/titlebar/titlebar_left.png"
    128             real_texture_placement="0 0 64 32"
    129             size="0%+0 0% 64 0%+32"
    130         />
    131                 <image  texture="session/titlebar/titlebar_middle.png"
    132             real_texture_placement="0 0 64 32"
    133             size="64 0% 100%-64 0%+32"
    134         />
    135                 <image  texture="session/titlebar/titlebar_right.png"
    136             real_texture_placement="0 0 64 32"
    137             size="100%-64 0% 100%+0 0%+32"
    138         />
    139     </sprite>
    140    
    141    
    142    
    143    
    144    
    145    
    146    
    14760   
    14861    <!-- Generic Panel -->
     
    273186    <!-- Bottom Left Panel -->
    274187    <sprite name="bottomLeft">
    275         <image
    276             texture="session/panel_left.png"
     188
     189        <!-- sides -->
     190        <image  texture="global/border/line_horiz.png"
     191            texture_size="0 0 64 4"
     192            size="4 0 100%-4 4"
     193        />
     194        <image  texture="global/border/line_vert.png"
     195            texture_size="0 0 4 64"
     196            size="100%-4 4 100% 100%-4"
     197        />
     198        <image  texture="global/border/line_horiz.png"
     199            texture_size="0 0 64 4"
     200            size="4 100%-4 100%-4 100%"
     201        />
     202        <image  texture="global/border/line_vert.png"
     203            texture_size="0 0 4 64"
     204            size="0 4 4 100%-4"
     205        />
     206
     207        <!-- corners -->
     208        <image  texture="global/border/line_corner_middle_left.png"
     209            texture_size="0 0 4 4"
     210            size="100%-4 0 100% 4"
     211        />
     212        <image  texture="global/border/line_corner_bottom_middle.png"
     213            texture_size="0 0 4 4"
     214            size="100%-4 100%-4 100% 100%"
     215        />
     216        <image  texture="global/border/line_corner_bottom_middle.png"
     217            texture_size="0 0 4 4"
     218            size="0 100%-4 4 100%"
     219        />
     220        <image  texture="global/border/line_corner_middle_right.png"
     221            texture_size="0 0 4 4"
     222            size="0 0 4 4"
     223        />
     224               
     225                <!-- background -->
     226                <image  texture="session/panel_left.png"
    277227            real_texture_placement="0 0 189 170"
    278228            texture_size="0 0 100% 100%"
    279             size="0 0 100% 100%"
    280         />
    281 
    282         <!-- sides -->
    283         <image
    284             texture="global/border/line_horiz.png"
    285             texture_size="0 0 64 4"
    286             size="4 0 100%-4 4"
    287         />
    288         <image
    289             texture="global/border/line_vert.png"
    290             texture_size="0 0 4 64"
    291             size="100%-4 4 100% 100%-4"
    292         />
    293         <image
    294             texture="global/border/line_horiz.png"
    295             texture_size="0 0 64 4"
    296             size="4 100%-4 100%-4 100%"
    297         />
    298         <image
    299             texture="global/border/line_vert.png"
    300             texture_size="0 0 4 64"
    301             size="0 4 4 100%-4"
    302         />
    303 
    304         <!-- corners -->
    305         <image
    306             texture="global/border/line_corner_middle_left.png"
    307             texture_size="0 0 4 4"
    308             size="100%-4 0 100% 4"
    309         />
    310         <image
    311             texture="global/border/line_corner_bottom_middle.png"
    312             texture_size="0 0 4 4"
    313             size="100%-4 100%-4 100% 100%"
    314         />
    315         <image
    316             texture="global/border/line_corner_bottom_middle.png"
    317             texture_size="0 0 4 4"
    318             size="0 100%-4 4 100%"
    319         />
    320         <image
    321             texture="global/border/line_corner_middle_right.png"
    322             texture_size="0 0 4 4"
    323             size="0 0 4 4"
     229            size="4 4 100%-4 100%-4"
    324230        />
    325231    </sprite>
     
    327233    <!-- Bottom Middle Panel -->
    328234    <sprite name="bottomMiddle">
    329         <image
    330             texture="session/panel_middle.png"
     235           
     236                <!-- background -->
     237        <image  texture="session/panel_middle.png"
    331238            real_texture_placement="0 0 228 205"
    332239            texture_size="0 0 100% 100%"
     
    335242
    336243        <!-- sides -->
    337         <image
    338             texture="global/border/line_horiz.png"
    339             texture_size="0 0 64 4"
     244        <image  texture="global/border/line_horiz.png"
     245                        texture_size="0 0 64 4"
    340246            size="4 0 100%-4 4"
    341247        />
    342         <image
    343             texture="global/border/line_vert.png"
     248        <image  texture="global/border/line_vert.png"
    344249            texture_size="0 0 4 64"
    345250            size="100%-4 4 100% 100%-4"
    346251        />
    347         <image
    348             texture="global/border/line_horiz.png"
     252        <image  texture="global/border/line_horiz.png"
    349253            texture_size="0 0 64 4"
    350254            size="4 100%-4 100%-4 100%"
    351255        />
    352         <image
    353             texture="global/border/line_vert.png"
     256        <image  texture="global/border/line_vert.png"
    354257            texture_size="0 0 4 64"
    355258            size="0 4 4 100%-4"
     
    357260
    358261        <!-- corners -->
    359         <image
    360             texture="global/border/line_corner_top_right.png"
     262        <image  texture="global/border/line_corner_top_right.png"
    361263            texture_size="0 0 4 4"
    362264            size="100%-4 0 100% 4"
    363265        />
    364         <image
    365             texture="global/border/line_corner_bottom_right.png"
     266        <image  texture="global/border/line_corner_bottom_right.png"
    366267            texture_size="0 0 4 4"
    367268            size="100%-4 100%-4 100% 100%"
    368269        />
    369         <image
    370             texture="global/border/line_corner_bottom_left.png"
     270        <image  texture="global/border/line_corner_bottom_left.png"
    371271            texture_size="0 0 4 4"
    372272            size="0 100%-4 4 100%"
    373273        />
    374         <image
    375             texture="global/border/line_corner_top_left.png"
     274        <image  texture="global/border/line_corner_top_left.png"
    376275            texture_size="0 0 4 4"
    377276            size="0 0 4 4"
     
    381280    <!-- Bottom Right Panel -->
    382281    <sprite name="bottomRight">
    383         <image
    384             texture="session/panel_right.png"
     282
     283        <!-- sides -->
     284        <image  texture="global/border/line_horiz.png"
     285            texture_size="0 0 64 4"
     286            size="4 0 100%-4 4"
     287        />
     288        <image  texture="global/border/line_vert.png"
     289            texture_size="0 0 4 64"
     290            size="100%-4 4 100% 100%-4"
     291        />
     292        <image  texture="global/border/line_horiz.png"
     293            texture_size="0 0 64 4"
     294            size="4 100%-4 100%-4 100%"
     295        />
     296        <image  texture="global/border/line_vert.png"
     297            texture_size="0 0 4 64"
     298            size="0 4 4 100%-4"
     299        />
     300
     301        <!-- corners -->
     302        <image  texture="global/border/line_corner_top_right.png"
     303            texture_size="0 0 4 4"
     304            size="100%-4 0 100% 4"
     305        />
     306        <image  texture="global/border/line_corner_bottom_right.png"
     307            texture_size="0 0 4 4"
     308            size="100%-4 100%-4 100% 100%"
     309        />
     310        <image  texture="global/border/line_corner_bottom_middle.png"
     311            texture_size="0 0 4 4"
     312            size="0 100%-4 4 100%"
     313        />
     314        <image  texture="global/border/line_corner_middle_right.png"
     315            texture_size="0 0 4 4"
     316            size="0 0 4 4"
     317        />
     318               
     319                <!-- background -->
     320                <image  texture="session/panel_right.png"
    385321            real_texture_placement="0 0 398 170"
    386322            texture_size="0 0 100% 100%"
    387             size="0 0 100% 100%"
    388         />
    389 
    390         <!-- sides -->
    391         <image
    392             texture="global/border/line_horiz.png"
    393             texture_size="0 0 64 4"
    394             size="4 0 100%-4 4"
    395         />
    396         <image
    397             texture="global/border/line_vert.png"
    398             texture_size="0 0 4 64"
    399             size="100%-4 4 100% 100%-4"
    400         />
    401         <image
    402             texture="global/border/line_horiz.png"
    403             texture_size="0 0 64 4"
    404             size="4 100%-4 100%-4 100%"
    405         />
    406         <image
    407             texture="global/border/line_vert.png"
    408             texture_size="0 0 4 64"
    409             size="0 4 4 100%-4"
    410         />
    411 
    412         <!-- corners -->
    413         <image
    414             texture="global/border/line_corner_top_right.png"
    415             texture_size="0 0 4 4"
    416             size="100%-4 0 100% 4"
    417         />
    418         <image
    419             texture="global/border/line_corner_bottom_right.png"
    420             texture_size="0 0 4 4"
    421             size="100%-4 100%-4 100% 100%"
    422         />
    423         <image
    424             texture="global/border/line_corner_bottom_middle.png"
    425             texture_size="0 0 4 4"
    426             size="0 100%-4 4 100%"
    427         />
    428         <image
    429             texture="global/border/line_corner_middle_right.png"
    430             texture_size="0 0 4 4"
    431             size="0 0 4 4"
     323            size="4 4 100%-4 100%-4"
    432324        />
    433325    </sprite>
     
    436328    <sprite name="goldPanel">
    437329        <!-- (currently this is all a hack - need proper textures) -->
    438         <image
    439             texture="global/titlebar/middle_gold_fern.dds"
     330        <image  texture="global/titlebar/middle_gold_fern.dds"
    440331            texture_size="0 0 64 32"
    441332            size="0 -6 100% 0"
    442333        />
    443         <image
    444             texture="global/titlebar/middle_gold_fern.dds"
     334        <image  texture="global/titlebar/middle_gold_fern.dds"
    445335            texture_size="0 0 64 32"
    446336            size="0 100%+5 100% 100%"
    447337        />
    448         <image
    449             texture="global/border/corner_bronze.dds"
     338        <image  texture="global/border/corner_bronze.dds"
    450339            texture_size="0 0 16 100%"
    451340            size="-4 -4 0 100%+4"
    452341        />
    453         <image
    454             texture="global/border/corner_bronze.dds"
     342        <image  texture="global/border/corner_bronze.dds"
    455343            texture_size="0 0 16 100%"
    456344            size="100% 0%-4 100%+4 100%+4"
    457345        />
    458         <image
    459             texture="global/tile/sandstone.dds"
     346        <image  texture="global/tile/sandstone.dds"
    460347            texture_size="0 0 128 128"
    461348        />
     
    464351    <sprite name="goldPanelFrilly">
    465352        <!-- (currently this is all a hack - need proper textures) -->
    466         <image
    467             texture="global/titlebar/middle_gold_fern.dds"
     353        <image  texture="global/titlebar/middle_gold_fern.dds"
    468354            texture_size="0 0 64 32"
    469355            size="0 -6 100% 0"
    470356        />
    471         <image
    472             texture="global/titlebar/middle_gold_fern.dds"
     357        <image  texture="global/titlebar/middle_gold_fern.dds"
    473358            texture_size="0 0 64 32"
    474359            size="0 100%+5 100% 100%"
    475360        />
    476         <image
    477             texture="global/border/corner_bronze.dds"
     361        <image  texture="global/border/corner_bronze.dds"
    478362            texture_size="0 0 16 100%"
    479363            size="-4 -4 0 100%+4"
    480364        />
    481         <image
    482             texture="global/border/corner_bronze.dds"
     365        <image  texture="global/border/corner_bronze.dds"
    483366            texture_size="0 0 16 100%"
    484367            size="100% 0%-4 100%+4 100%+4"
    485368        />
    486         <image
    487             texture="global/titlebar/left_gold_fern.dds"
     369        <image  texture="global/titlebar/left_gold_fern.dds"
    488370            texture_size="0 0 64 32"
    489371            size="-48 50%-16 0 50%+16"
    490372        />
    491         <image
    492             texture="global/titlebar/right_gold_fern.dds"
     373        <image  texture="global/titlebar/right_gold_fern.dds"
    493374            texture_size="-16 0 48 32"
    494375            size="100% 50%-16 100%+48 50%+16"
    495376        />
    496         <image
    497             texture="global/tile/sandstone.dds"
     377        <image  texture="global/tile/sandstone.dds"
    498378            texture_size="0 0 128 128"
    499379        />
     
    502382    <sprite name="frilly">
    503383        <!-- (currently this is all a hack - need proper textures) -->
    504         <image
    505             texture="global/titlebar/left_gold_fern.dds"
     384        <image  texture="global/titlebar/left_gold_fern.dds"
    506385            texture_size="0 0 64 32"
    507386            size="-48 50%-16 0 50%+16"
    508387        />
    509         <image
    510             texture="global/titlebar/right_gold_fern.dds"
     388        <image  texture="global/titlebar/right_gold_fern.dds"
    511389            texture_size="-16 0 48 32"
    512390            size="100% 50%-16 100%+48 50%+16"
     
    541419    <sprite name="mainPanel">
    542420        <!-- (currently this is all a hack - need proper textures) -->
    543         <image
    544             texture="global/tile/sandstone.dds"
     421        <image  texture="global/tile/sandstone.dds"
    545422            texture_size="0 0 128 128"
    546423        />
    547424
    548         <image
    549             texture="global/titlebar/middle_gold_fern.dds"
     425        <image  texture="global/titlebar/middle_gold_fern.dds"
    550426            real_texture_placement="0 4 64 6"
    551427            texture_size="0 0 64 32"
    552428            size="0 0 100% 3"
    553429        />
    554         <image
    555             texture="global/titlebar/middle_gold_fern.dds"
     430        <image  texture="global/titlebar/middle_gold_fern.dds"
    556431            real_texture_placement="0 4 64 6"
    557432            texture_size="0 0 64 32"
    558433            size="0 100%-3 100% 100%"
    559434        />
    560         <image
    561             texture="global/border/corner_bronze.dds"
     435        <image  texture="global/border/corner_bronze.dds"
    562436            real_texture_placement="1 1 15 15"
    563437            texture_size="0 0 16 100%"
    564438            size="0 0 3 100%"
    565439        />
    566         <image
    567             texture="global/border/corner_bronze.dds"
     440        <image  texture="global/border/corner_bronze.dds"
    568441            real_texture_placement="1 1 15 15"
    569442            texture_size="0 0 16 100%"
Note: See TracChangeset for help on using the changeset viewer.