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


Ignore:
Timestamp:
08/28/11 05:04:32 (13 years ago)
Author:
brian
Message:

change button height from 32 to 28

Location:
ps/trunk/binaries/data/mods/public
Files:
13 edited

Legend:

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

    r10111 r10122  
    2727            </object>
    2828           
    29             <object name="civSelection" type="dropdown" style="StoneDropDown" size="50%-96 10 50%+96 40">
     29            <object name="civSelection" type="dropdown" style="StoneDropDown" size="50%-96 10 50%+96 38">
    3030                <action on="SelectionChange">selectCiv(this.list_data[this.selected]);</action>
    3131            </object>
     
    112112            type="button"
    113113            style="StoneButton"
    114             size="100%-148 100%-52 100%-20 100%-20"
     114            size="100%-148 100%-48 100%-20 100%-20"
    115115        >Close
    116116            <action on="Press"><![CDATA[
  • ps/trunk/binaries/data/mods/public/gui/common/common_sprites.xml

    r10119 r10122  
    146146    <sprite name="SubmenuPanel">
    147147        <image  texture="global/tile/stone_background.png"
    148             real_texture_placement="28 0 292 264"
     148            real_texture_placement="32 0 292 264"
    149149            texture_size="0 0 240 240"
    150150        />
     
    461461    <sprite name="StoneButton">
    462462        <image  texture="global/button/button_stone_unselected.png"
    463             real_texture_placement="0 0 256 32"
     463            real_texture_placement="0 0 256 28"
    464464            size="0 0 100% 100%"
    465465        />
     
    468468    <sprite name="StoneButtonOver">
    469469        <image  texture="global/button/button_stone_selected.png"
    470             real_texture_placement="0 0 256 32"
     470            real_texture_placement="0 0 256 28"
    471471            size="0 0 100% 100%"
    472472        />
     
    476476        <effect add_color="60 42 42 0" />
    477477        <image  texture="global/button/button_stone_selected.png"
    478             real_texture_placement="0 0 256 32"
     478            real_texture_placement="0 0 256 28"
    479479            size="0 0 100% 100%"
    480480        />
     
    483483    <sprite name="StoneButtonFancyOver">
    484484        <image  texture="global/button/button_stone_selected.png"
    485             real_texture_placement="0 0 256 32"
     485            real_texture_placement="0 0 256 28"
    486486            size="0 0 100% 100%"
    487487        />
    488488        <image  texture="global/button/button_stone_selected_left_trim.png"
    489             real_texture_placement="0 0 32 32"
    490             size="0 0 32 32"
     489            real_texture_placement="0 0 32 28"
     490            size="0 0 32 28"
    491491        />
    492492        <image  texture="global/button/button_stone_selected_right_trim.png"
    493             real_texture_placement="0 0 32 32"
    494             size="100%-32 0 100% 32"
     493            real_texture_placement="0 0 32 28"
     494            size="100%-32 0 100% 28"
    495495        />
    496496        </sprite>
     
    499499        <effect add_color="60 42 42 0" />
    500500        <image  texture="global/button/button_stone_selected.png"
    501             real_texture_placement="0 0 256 32"
     501            real_texture_placement="0 0 256 28"
    502502            size="0 0 100% 100%"
    503503        />
    504504        <image  texture="global/button/button_stone_selected_left_trim.png"
    505             real_texture_placement="0 0 32 32"
    506             size="0 0 32 32"
     505            real_texture_placement="0 0 32 28"
     506            size="0 0 32 28"
    507507        />
    508508        <image  texture="global/button/button_stone_selected_right_trim.png"
    509             real_texture_placement="0 0 32 32"
    510             size="100%-32 0 100% 32"
     509            real_texture_placement="0 0 32 28"
     510            size="100%-32 0 100% 28"
    511511        />
    512512        </sprite>
     
    515515        <effect grayscale="" />
    516516        <image  texture="global/button/button_stone_unselected.png"
    517             real_texture_placement="0 0 256 32"
     517            real_texture_placement="0 0 256 28"
    518518            size="0 0 100% 100%"
    519519        />
  • ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.xml

    r10111 r10122  
    3636        <!-- Map selection -->
    3737        <object size="20 64 250 100%-20">
    38             <object name="mapTypeHeading" type="text" style="LeftLabelText" size="0 0 100% 30">Match Type:</object>
    39             <object name="mapTypeSelection"
     38           
     39                        <object size="0 0 40% 100%">
     40                                <object name="mapTypeHeading" type="text" style="RightLabelText" size="0 0 100% 28">Match Type:</object>
     41                                <object name="mapFilterHeading" type="text" style="RightLabelText" size="0 34 100% 60">Map Filter:</object>
     42                        </object>
     43                       
     44                        <object name="mapTypeSelection"
    4045                type="dropdown"
    4146                style="StoneDropDown"
    42                 size="100 0 100% 30"
     47                size="100 0 100% 28"
    4348                tooltip_style="onscreenToolTip"
    4449                tooltip="Select a map type.">
    4550                <action on="SelectionChange">selectMapType(this.list_data[this.selected]);</action>
    4651            </object>
    47            
    48             <object name="mapFilterHeading" type="text" style="LeftLabelText" size="0 34 100% 64">Map Filter:</object>
     52                       
    4953            <object name="mapFilterSelection"
    5054                type="dropdown"
    5155                style="StoneDropDown"
    52                 size="100 34 100% 64"
     56                size="100 34 100% 60"
    5357                tooltip_style="onscreenToolTip"
    5458                tooltip="Select a map filter.">
     
    171175            type="button"
    172176            style="StoneButton"
    173             size="100%-304 100%-52 100%-164 100%-20"
     177            size="100%-304 100%-48 100%-164 100%-20"
    174178            tooltip_style="onscreenToolTip"
    175179            tooltip="Click this button to return to the main menu."
     
    185189            type="button"
    186190            style="StoneButton"
    187             size="100%-160 100%-52 100%-20 100%-20"
     191            size="100%-160 100%-48 100%-20 100%-20"
    188192            tooltip_style="onscreenToolTip"
    189193            tooltip="Click this button to start a new game with the current settings."
  • ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup_mp.xml

    r10108 r10122  
    4444            </object>3 100%-33 103 100%-3
    4545
    46             <object type="button" size="50%+16 100%-64 50%+144 100%-32" style="StoneButton">
     46            <object type="button" size="50%+16 100%-60 50%+144 100%-32" style="StoneButton">
    4747                Continue
    4848                <action on="Press"><![CDATA[
     
    8585            </object>
    8686
    87             <object type="button" size="50%+16 100%-64 50%+144 100%-32" style="StoneButton">
     87            <object type="button" size="50%+16 100%-60 50%+144 100%-32" style="StoneButton">
    8888                Continue
    8989                <action on="Press"><![CDATA[
     
    9898        </object>
    9999
    100                 <object type="button" style="StoneButton" size="50%-144 100%-64 50%-16 100%-32">
     100                <object type="button" style="StoneButton" size="50%-144 100%-60 50%-16 100%-32">
    101101            Cancel
    102102            <action on="Press"><![CDATA[cancelSetup();]]></action>
  • ps/trunk/binaries/data/mods/public/gui/manual/manual.xml

    r10120 r10122  
    1515                    </object>
    1616                </object>   
    17         <object type="button" style="StoneButton" size="100%-320 100%-48 100%-160 100%-16">
     17        <object type="button" style="StoneButton" size="100%-324 100%-48 100%-164 100%-20">
    1818            Online Manual
    1919            <action on="Press"><![CDATA[
     
    2323                ]]></action>
    2424        </object>
    25         <object type="button" style="StoneButton" tooltip_style="snToolTip" size="100%-144 100%-48 100%-16 100%-16">
     25        <object type="button" style="StoneButton" tooltip_style="snToolTip" size="100%-148 100%-48 100%-20 100%-20">
    2626            Close
    2727            <action on="Press"><![CDATA[Engine.PopGuiPage();]]></action>
  • ps/trunk/binaries/data/mods/public/gui/msgbox/msgbox.xml

    r10108 r10122  
    7272        {
    7373        case 1:
    74             mbButton1Obj.size = "50%-64 100%-64 50%+64 100%-32";
     74            mbButton1Obj.size = "50%-64 100%-76 50%+64 100%-48";
    7575            break;
    7676        case 2:
    77             mbButton1Obj.size = "50%-144 100%-64 50%-16 100%-32";
    78             mbButton2Obj.size = "50%+16 100%-64 50%+144 100%-32";
     77            mbButton1Obj.size = "50%-144 100%-76 50%-16 100%-48";
     78            mbButton2Obj.size = "50%+16 100%-76 50%+144 100%-48";
    7979            break;
    8080        case 3:
    81             mbButton1Obj.size = "10% 100%-80 30% 100%-50";
    82             mbButton2Obj.size = "40% 100%-80 60% 100%-50";
    83             mbButton3Obj.size = "70% 100%-80 90% 100%-50";
     81            mbButton1Obj.size = "10% 100%-76 30% 100%-48";
     82            mbButton2Obj.size = "40% 100%-76 60% 100%-48";
     83            mbButton3Obj.size = "70% 100%-76 90% 100%-48";
    8484            break;
    8585        }
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js

    r10119 r10122  
    11var userReportEnabledText; // contains the original version with "$status" placeholder
    22var currentSubmenu; // contains placeholder submenu
     3const MARGIN = 4;
    34
    45function init()
     
    101102}
    102103
    103 
    104 
    105 
    106 const MARGIN = 4;
    107 
    108104// Sizes right border on main menu panel to match the submenu
    109105function blendSubmenuIntoMain(topPosition, bottomPosition)
     
    130126        var submenu = getGUIObjectByName("submenu");
    131127        var top = position - MARGIN;
    132         var bottom = position + (buttonHeight * numButtons) + MARGIN;
     128        var bottom = position + ((buttonHeight + MARGIN) * numButtons);
    133129        submenu.size = submenu.size.left + " " + top + " " + submenu.size.right + " " + bottom;
    134130        submenu.hidden = false;
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml

    r10121 r10122  
    194194                                      type="button"
    195195                                      style="StoneButtonFancy"
    196                                       size="4 4 100%-4 36"
     196                                      size="4 4 100%-4 32"
    197197                                      tooltip_style="pgToolTip"
    198198                                      tooltip="The 0 A.D. Game Manual"
     
    211211                                       style="StoneButtonFancy"
    212212                                       type="button"
    213                                        size="4 36 100%-4 68"
     213                                       size="4 36 100%-4 64"
    214214                                       tooltip_style="pgToolTip"
    215215                                       tooltip="Challenge the computer player to a single player match."
     
    227227                                        style="StoneButtonFancy"
    228228                                        type="button"
    229                                         size="4 68 100%-4 100"
     229                                        size="4 68 100%-4 96"
    230230                                        tooltip_style="pgToolTip"
    231231                                        tooltip="Fight against one or more human players in a multiplayer game."
     
    243243                                        style="StoneButtonFancy"
    244244                                        type="button"
    245                                         size="4 100 100%-4 132"
     245                                        size="4 100 100%-4 128"
    246246                                        tooltip_style="pgToolTip"
    247247                                        tooltip="Game options and scenario design tools."
     
    259259                                        style="StoneButtonFancy"
    260260                                        type="button"
    261                                         size="4 132 100%-4 164"
     261                                        size="4 132 100%-4 160"
    262262                                        tooltip_style="pgToolTip"
    263263                                        tooltip="Learn about the six civilizations featured in 0 A.D."
     
    276276                                        type="button"
    277277                                        style="StoneButtonFancy"
    278                                         size="4 164 100%-4 196"
     278                                        size="4 164 100%-4 192"
    279279                                        tooltip_style="pgToolTip"
    280280                                        tooltip="Exit Game"
     
    318318                                        tooltip_style="pgToolTip"
    319319                                        tooltip="Click to open wildfiregames.com/0ad in your web browser."
    320                     size="8 100%-40 50%-4 100%-8"
     320                    size="8 100%-36 50%-4 100%-8"
    321321                >
    322322                    Website
     
    332332                                        tooltip_style="pgToolTip"
    333333                                        tooltip="Click to chat in IRC. (#0ad at webchat.quakenet.org)"
    334                     size="50%+4 100%-40 100%-8 100%-8"
     334                    size="50%+4 100%-36 100%-8 100%-8"
    335335                >
    336336                    IRC
     
    413413                                                type="button"
    414414                                                style="StoneButtonFancy"
    415                                                 size="0 0 100% 32"
     415                                                size="0 0 100% 28"
    416416                                                tooltip_style="pgToolTip"
    417417                                                tooltip="Click here to start a new single player game."
     
    429429                                                type="button"
    430430                                                style="StoneButtonFancy"
    431                                                 size="0 32 100% 64"
     431                                                size="0 32 100% 60"
    432432                                                tooltip_style="pgToolTip"
    433433                                                tooltip="Relive history through historical military campaigns. [NOT YET IMPLEMENTED]"
     
    455455                                                type="button"
    456456                                                style="StoneButtonFancy"
    457                                                 size="0 0 100% 32"
     457                                                size="0 0 100% 28"
    458458                                                tooltip_style="pgToolTip"
    459459                                                tooltip="Joining an existing multiplayer game."
     
    471471                                                type="button"
    472472                                                style="StoneButtonFancy"
    473                                                 size="0 32 100% 64"
     473                                                size="0 32 100% 60"
    474474                                                tooltip_style="pgToolTip"
    475475                                                tooltip="Host a multiplayer game."
     
    497497                                                style="StoneButtonFancy"
    498498                                                type="button"
    499                                                 size="0 0 100% 32"
     499                                                size="0 0 100% 28"
    500500                                                tooltip_style="pgToolTip"
    501501                                                tooltip="Adjust game settings. [NOT YET IMPLEMENTED]"
     
    514514                                                style="StoneButtonFancy"
    515515                                                type="button"
    516                                                 size="0 32 100% 64"
     516                                                size="0 32 100% 60"
    517517                                                tooltip_style="pgToolTip"
    518518                                                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;."
  • ps/trunk/binaries/data/mods/public/gui/session/session.xml

    r10121 r10122  
    185185            </object>
    186186
    187             <object  size="32 100%-44 144 100%-12" type="button" style="StoneButton">
     187            <object  size="32 100%-40 144 100%-12" type="button" style="StoneButton">
    188188                Cancel
    189189                <action on="Press">closeChat();</action>
    190190            </object>
    191             <object size="100%-144 100%-44 100%-32 100%-12" type="button" style="StoneButton">
     191            <object size="100%-144 100%-40 100%-32 100%-12" type="button" style="StoneButton">
    192192                Send
    193193                <action on="Press">submitChatInput();</action>
     
    209209                       
    210210                        <object name="menu"
    211                                 style="TranslucentPanelThinBorder"
     211                                style="StonePanelThinBorder"
    212212                                type="image"
    213                                 size="100%-164 0 100% 168"
     213                                size="100%-164 0 100% 164"
    214214                                hidden="true"
    215215                        >
     
    220220                                                name="settingsButton"
    221221                                                style="StoneButtonFancy"
    222                                                 size="0 0 100% 32"
     222                                                size="0 0 100% 28"
    223223                                                tooltip_style="sessionToolTip"
    224224                                        >
     
    233233                                                name="chatButton"
    234234                                                style="StoneButtonFancy"
    235                                                 size="0 32 100% 64"
     235                                                size="0 32 100% 60"
    236236                                                tooltip_style="sessionToolTip"
    237237                                        >
     
    246246                                                name="pauseButton"
    247247                                                style="StoneButtonFancy"
    248                                                 size="0 64 100% 96"
     248                                                size="0 64 100% 92"
    249249                                                tooltip_style="sessionToolTip"
    250250                                        >
     
    259259                                                name="menuExitButton"
    260260                                                style="StoneButtonFancy"
    261                                                 size="0 96 100% 128"
     261                                                size="0 96 100% 124"
    262262                                                tooltip_style="sessionToolTip"
    263263                                        >
     
    327327                        <object type="button"
    328328                                style="StoneButton"
    329                                 size="50%-64 100%-56 50%+64 100%-24"
     329                                size="50%-64 100%-52 50%+64 100%-24"
    330330                                tooltip_style="sessionToolTip"
    331331                        >
     
    341341        type="image"
    342342        sprite="topPanel"
    343         size="-3 0 100%+3 40"
     343        size="-3 0 100%+3 36"
    344344    >
    345345        <!-- ================================  ================================ -->
     
    347347        <!-- ================================  ================================ -->
    348348        <object
    349             size="1% 0 45% 100%"
     349            size="10 0 45% 100%"
    350350        >   
    351351            <!-- Food -->
    352             <object size="0 0 20% 100%" type="image" style="resourceCounter" tooltip="Food" tooltip_style="sessionToolTipBold">
    353                 <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="0"/>
    354                 <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceFood"/>
     352            <object size="0 0 90 100%" type="image" style="resourceCounter" tooltip="Food" tooltip_style="sessionToolTipBold">
     353                <object size="0 -4 40 36" type="image" style="resourceIcon" cell_id="0"/>
     354                <object size="32 0 100% 100%-2" type="text" style="resourceText" name="resourceFood"/>
    355355            </object>
    356356
    357357            <!-- Wood -->
    358             <object size="20% 0 40% 100%" type="image" style="resourceCounter" tooltip="Wood" tooltip_style="sessionToolTipBold">
    359                 <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="1"/>
    360                 <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceWood"/>
     358            <object size="90 0 180 100%" type="image" style="resourceCounter" tooltip="Wood" tooltip_style="sessionToolTipBold">
     359                <object size="0 -4 40 36" type="image" style="resourceIcon" cell_id="1"/>
     360                <object size="32 0 100% 100%-2" type="text" style="resourceText" name="resourceWood"/>
    361361            </object>
    362362
    363363            <!-- Stone -->
    364             <object size="40% 0 60% 100%" type="image" style="resourceCounter" tooltip="Stone" tooltip_style="sessionToolTipBold">
    365                 <object size="0 -2 48 42" type="image" style="resourceIcon" cell_id="2"/>
    366                 <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceStone"/>
     364            <object size="180 0 270 100%" type="image" style="resourceCounter" tooltip="Stone" tooltip_style="sessionToolTipBold">
     365                <object size="0 -4 40 36" type="image" style="resourceIcon" cell_id="2"/>
     366                <object size="32 0 100% 100%-2" type="text" style="resourceText" name="resourceStone"/>
    367367            </object>
    368368
    369369            <!-- Metal -->
    370             <object size="60% 0 80% 100%"  type="image" style="resourceCounter" tooltip="Metal" tooltip_style="sessionToolTipBold">
    371                 <object size="0 -6 48 42" type="image" style="resourceIcon" cell_id="3"/>
    372                 <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourceMetal"/>
     370            <object size="270 0 360 100%"  type="image" style="resourceCounter" tooltip="Metal" tooltip_style="sessionToolTipBold">
     371                <object size="0 -4 40 36" type="image" style="resourceIcon" cell_id="3"/>
     372                <object size="32 0 100% 100%-2" type="text" style="resourceText" name="resourceMetal"/>
    373373            </object>
    374374
    375375            <!-- Population -->
    376             <object size="80% 0 100% 100%" type="image" style="resourceCounter" tooltip="Population (current / limit)" tooltip_style="sessionToolTipBold">
    377                 <object size="0 -6 44 38" type="image" style="resourceIcon" cell_id="4"/>
    378                 <object size="30% 0 100% 100%-2" type="text" style="resourceText" name="resourcePop"/>
     376            <object size="360 0 450 100%" type="image" style="resourceCounter" tooltip="Population (current / limit)" tooltip_style="sessionToolTipBold">
     377                <object size="0 -4 40 34" type="image" style="resourceIcon" cell_id="4"/>
     378                <object size="32 0 100% 100%-2" type="text" style="resourceText" name="resourcePop"/>
    379379            </object>
    380380        </object>
     
    396396       
    397397        <!-- Displays Alpha name and number -->
    398         <object size="70%-128 1 70%+128 100%" name="alphaLabel" type="text" style="CenteredLabelText" text_valign="top" ghost="true">
     398        <object size="70%-128 0 70%+128 100%" name="alphaLabel" type="text" style="CenteredLabelText" text_valign="top" ghost="true">
    399399            ALPHA VI : Fortuna
    400400                       
    401401                        <!-- Displays build date and revision number-->
    402                         <object size="50%-128 0 50%+128 100%-3" name="buildTimeLabel" type="text" text_align="center" text_valign="bottom" font="serif-12" textcolor="white" ghost="true">
     402                        <object size="50%-128 0 50%+128 100%-2" name="buildTimeLabel" type="text" text_align="center" text_valign="bottom" font="serif-12" textcolor="white" ghost="true">
    403403                                <action on="Load"><![CDATA[this.caption = buildTime(0) + " (" + buildTime(2) + ")";]]></action>
    404404                        </object>
    405405        </object>
    406406
    407        
    408                
    409407        <!-- ================================  ================================ -->
    410408        <!-- Menu Button -->
     
    412410        <object type="button"
    413411            name="menuButton"
    414             size="100%-164 4 100%-8 36"
     412            size="100%-164 4 100%-8 32"
    415413                        style="StoneButtonFancy"
    416414            tooltip_style="sessionToolTip"
  • ps/trunk/binaries/data/mods/public/gui/summary/summary.xml

    r10085 r10122  
    172172            </object>
    173173           
    174             <object type="button" style="StoneButton" size="100%-172 100%-48 100%-16 100%-16">
     174            <object type="button" style="StoneButton" size="100%-176 100%-48 100%-20 100%-20">
    175175                Main Menu
    176176                <action on="Press"><![CDATA[
Note: See TracChangeset for help on using the changeset viewer.