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


Ignore:
Timestamp:
08/23/11 01:42:16 (13 years ago)
Author:
brian
Message:

Converted parts of the game setup dialog and some general GUI elements over to new styles. There are duplicate sprites / textures that will need to be removed later when all references to them are changed.

Location:
ps/trunk/binaries/data/mods/public
Files:
15 added
2 deleted
4 edited

Legend:

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

    r9104 r10067  
    1010
    1111    <!-- Add a translucent black background to fade out the menu page -->
    12     <object type="image" z="0" sprite="bkTranslucent"/>
    13 
    14     <object type="image" style="wheatWindow" size="50%-190 50%-80 50%+190 50%+80" name="loadingWindow">
    15 
    16         <object type="text" style="wheatWindowTitleBar">
     12    <object type="image" z="0" sprite="BackgroundTranslucent"/>
     13
     14    <object type="image" style="StoneDialog" size="50%-190 50%-80 50%+190 50%+80" name="loadingWindow">
     15
     16        <object type="text" style="StoneDialogTitleBar" size="50%-128 0%-16 50%+128 16">
    1717            Loading
    1818        </object>
     
    2424    </object>
    2525
    26     <object type="image" style="wheatWindow" size="50%-400 50%-300 50%+400 50%+300" hidden="true" name="setupWindow">
     26    <object type="image" style="StoneDialog" size="50%-400 50%-300 50%+400 50%+300" hidden="true" name="setupWindow">
    2727
    2828        <action on="Tick">
     
    3030        </action>
    3131
    32         <object style="wheatWindowTitleBar" type="text">Match Setup</object>
    33 
    34         <object type="button" style="wheatExit" tooltip_style="snToolTip">
     32        <object style="StoneDialogTitleBar" type="text" size="50%-128 0%-16 50%+128 16">
     33            Match Setup
     34        </object>
     35
     36        <object type="button" style="StoneExit" tooltip_style="snToolTip" size="100%-16 0 100% 16">
    3537            <action on="Press"><![CDATA[
    3638                cancelSetup();
     
    4042
    4143        <!-- Map selection -->
    42 
    43         <object size="0 0 250 100%">
    44             <object name="mapTypeHeading" type="text" text_valign="center" size="0 0 100% 30" font="serif-bold-16">Match Type:</object>
     44        <object size="16 64 250 100%-16">
     45            <object name="mapTypeHeading" type="text" style="LeftLabelText" size="0 0 100% 30">Match Type:</object>
    4546            <object name="mapTypeSelection"
    4647                type="dropdown"
    47                 style="wheatDropDown"
     48                style="StoneDropDown"
    4849                size="100 0 100% 30"
    4950                tooltip_style="onscreenToolTip"
     
    5253            </object>
    5354           
    54             <object name="mapFilterHeading" type="text" text_valign="center" size="0 34 100% 64" font="serif-bold-14">Map Filter:</object>
     55            <object name="mapFilterHeading" type="text" style="LeftLabelText" size="0 34 100% 64">Map Filter:</object>
    5556            <object name="mapFilterSelection"
    5657                type="dropdown"
    57                 style="wheatDropDown"
     58                style="StoneDropDown"
    5859                size="100 34 100% 64"
    5960                tooltip_style="onscreenToolTip"
     
    6364         
    6465            <object name="mapSelection"
    65                 style="wheatList"
     66                style="StoneList"
    6667                type="list"
    6768                size="0 70 100% 100%-200"
     
    7172            </object>
    7273           
    73             <object type="image" style="indentedPanel" size="0 100%-190 100% 100%">
    74                 <object name="mapInfoName" type="text" size="0 0 100% 30" font="serif-bold-18"/>
    75                 <object name="mapInfoDescription" type="text" size="0 24 100% 100%" font="serif-13"/>
     74            <object type="image" sprite="BackgroundIndentFillDark" size="0 100%-190 100% 100%">
     75                <object name="mapInfoName" type="text" style="LeftLabelText" size="0 0 100% 30"/>
     76                <object name="mapInfoDescription" type="text" style="SmallLeftLabelText" size="0 24 100% 100%"/>
    7677            </object>
    7778   
     
    7980
    8081        <!-- Player assignments -->
    81        
    8282        <object name="numPlayersBox" size="260 0 100% 30" hidden="true">
    8383            <object name="numPlayersSelectionHeading" type="text" text_valign="center" font="serif-bold-16">Number of Players</object>
    8484            <object name="numPlayersSelection"
    8585                type="dropdown"
    86                 style="wheatDropDown"
     86                style="StoneDropDown"
    8787                size="150 0 200 30"
    8888                tooltip_style="onscreenToolTip"
     
    9292        </object>
    9393
    94         <object size="260 36 100% 100%-260" type="image" sprite="wheatIndentFillLight">
     94        <object size="260 64 100%-16 100%-260" type="image" sprite="BackgroundIndentFillDark">
    9595            <object size="0 6 100% 30">
    9696                <object name="playerNameHeading" type="text" text_align="center" size="100 0 250 100%" font="serif-bold-14">Player Name</object>
     
    115115                        <object name="playerColour[n]" type="image" size="0 0 100% 100%"/>
    116116                        <object name="playerName[n]" type="text" text_align="right" text_valign="center" size="0 0 100 100%"/>
    117                         <object name="playerAssignment[n]" type="dropdown" style="wheatDropDown" size="100 2 250 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player"/>
    118                         <object name="playerConfig[n]" type="button" style="wheatButton" size="251 6 264 24"
     117                        <object name="playerAssignment[n]" type="dropdown" style="StoneDropDown" size="100 2 250 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player"/>
     118                        <object name="playerConfig[n]" type="button" style="StoneButtonPlain" size="251 6 264 24"
    119119                            tooltip_style="onscreenToolTip"
    120120                            tooltip="Configure AI settings"
    121121                        >c</object>
    122                         <object name="playerCiv[n]" type="dropdown" style="wheatDropDown" size="265 2 395 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player's civilization"/>
     122                        <object name="playerCiv[n]" type="dropdown" style="StoneDropDown" size="265 2 395 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player's civilization"/>
    123123                        <object name="playerCivText[n]" type="text" text_align="center" text_valign="center" size="265 0 395 100%"/>
    124                         <object name="playerTeam[n]" type="dropdown" style="wheatDropDown" size="415 2 485 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player's team"/>
     124                        <object name="playerTeam[n]" type="dropdown" style="StoneDropDown" size="415 2 485 100%-2" tooltip_style="onscreenToolTip" tooltip="Select player's team"/>
    125125                        <object name="playerTeamText[n]" type="text" text_align="center" text_valign="center" size="415 0 485 100%"/>
    126126                    </object>
     
    131131               
    132132        <!-- Options -->
    133        
    134133        <object name="gameOptionsBox" size="260 100%-260 100% 100%-190">
    135134            <object size="2 2 100% 50%-2">  <!-- Top row -->
    136                 <object name="mapSizeText" size="0 0 175 100%" type="text">Map size:</object>
    137                 <object name="mapSize" size="75 -2 225 100%-6" type="dropdown" style="wheatDropDown" hidden="true" tooltip_style="onscreenToolTip" tooltip="Select map size (larger may reduce performance)"/>
    138                 <object name="victoryConditionText" size="245 0 500 100%" type="text">Victory condition:</object>
    139                 <object name="victoryCondition" size="375 -2 500 100%-6" type="dropdown" style="wheatDropDown" hidden="true" tooltip_style="onscreenToolTip" tooltip="Select victory condition"/>
     135                <object name="mapSizeText" size="0 0 175 100%" type="text" style="LeftLabelText">Map size:</object>
     136                <object name="mapSize" size="75 -2 225 100%-6" type="dropdown" style="StoneDropDown" hidden="true" tooltip_style="onscreenToolTip" tooltip="Select map size (larger may reduce performance)"/>
     137                <object name="victoryConditionText" size="245 0 500 100%" type="text" style="LeftLabelText">Victory condition:</object>
     138                <object name="victoryCondition" size="375 -2 500 100%-6" type="dropdown" style="StoneDropDown" hidden="true" tooltip_style="onscreenToolTip" tooltip="Select victory condition"/>
    140139            </object>
    141140            <object size="2 50%+2 100% 100%">   <!-- Bottom row -->
    142                 <object name="revealMapText" size="0 0 120 100%" type="text">Reveal map:</object>
    143                 <object name="revealMap" size="120 2 140 100%" type="checkbox" style="wheatCrossBox" hidden="true" tooltip_style="onscreenToolTip" tooltip="Toggle reveal map"/>
    144                 <object name="lockTeamsText" size="245 0 400 100%" type="text">Teams locked:</object>
    145                 <object name="lockTeams" size="400 2 420 100%" type="checkbox" style="wheatCrossBox" hidden="true" tooltip_style="onscreenToolTip" tooltip="Toggle locked teams"/>
     141                <object name="revealMapText" size="0 0 120 100%" type="text" style="LeftLabelText">Reveal map:</object>
     142                <object name="revealMap" size="120 2 140 100%" type="checkbox" style="StoneCrossBox" hidden="true" tooltip_style="onscreenToolTip" tooltip="Toggle reveal map"/>
     143                <object name="lockTeamsText" size="245 0 400 100%" type="text" style="LeftLabelText">Teams locked:</object>
     144                <object name="lockTeams" size="400 2 420 100%" type="checkbox" style="StoneCrossBox" hidden="true" tooltip_style="onscreenToolTip" tooltip="Toggle locked teams"/>
    146145            </object>
    147146        </object>
     
    149148       
    150149        <!-- Chat window -->
    151 
    152         <object name="chatPanel" size="260 100%-190 100% 100%-45" type="image" sprite="wheatIndentFillLight">
     150        <object name="chatPanel" size="260 100%-190 100%-16 100%-45" type="image" sprite="BackgroundIndentFillDark">
    153151   
    154152            <object name="chatText" size="3 1 100%-1 100%-25" type="text" style="chatPanel"/>
    155153   
    156             <object name="chatInput" size="2 100%-23 100%-66 100%-3" type="input" style="wheatInput">
     154            <object name="chatInput" size="2 100%-23 100%-66 100%-3" type="input" style="StoneInput">
    157155                <action on="Press">submitChatInput();</action>
    158156            </object>
    159157   
    160             <object size="100%-65 100%-25 100%-1 100%" type="button" style="wheatButton">
     158            <object size="100%-65 100%-25 100%-1 100%" type="button" style="StoneButton">
    161159                Send
    162160                <action on="Press">submitChatInput();</action>
     
    165163        </object>
    166164
     165
    167166        <!-- Other things -->
    168    
    169167        <object name="onscreenToolTip"
    170168            type="text"
    171169            font="serif-14"
    172170            textcolor="white"
    173             sprite="bkTranslucent"
     171            sprite="BackgroundTranslucent"
    174172            hidden="true"
    175             size="260 100%-40 100%-290 100%"
     173            size="260 100%-64 100%-310 100%-16"
    176174        >[Tooltip text]</object>
    177175   
     
    179177            name="cancelGame"
    180178            type="button"
    181             style="wheatButton"
    182             font="serif-16"
    183             size="100%-140 100%-40 100%+3 100%+3"
     179            style="StoneButton"
     180            size="100%-300 100%-48 100%-160 100%-16"
    184181            tooltip_style="onscreenToolTip"
    185182            tooltip="Click this button to return to the main menu."
     
    194191            name="startGame"
    195192            type="button"
    196             style="wheatButton"
    197             font="serif-16"
    198             size="100%-280 100%-40 100%-143 100%+3"
     193            style="StoneButton"
     194            size="100%-156 100%-48 100%-16 100%-16"
    199195            tooltip_style="onscreenToolTip"
    200196            tooltip="Click this button to start a new game with the current settings."
  • ps/trunk/binaries/data/mods/public/gui/page_gamesetup.xml

    r7653 r10067  
    44    <include>common/styles.xml</include>
    55    <include>common/sprite1.xml</include>
     6
     7<include>common/common_sprites.xml</include>
     8<include>common/common_styles.xml</include>
     9
    610    <include>gamesetup/setup.xml</include>
    711    <include>gamesetup/sprites.xml</include>
  • ps/trunk/binaries/data/mods/public/gui/page_pregame.xml

    r10061 r10067  
    66    <include>common/init.xml</include>
    77
    8 <include>common/menu_sprites.xml</include>
    9 <include>common/menu_styles.xml</include>
     8<include>common/common_sprites.xml</include>
     9<include>common/common_styles.xml</include>
    1010
    1111    <include>pregame/sprites.xml</include>
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml

    r10062 r10067  
    5555                <object name="cornerExitButton"
    5656                        type="button"
    57                         style="wheatExit"
     57                        style="StoneExit"
    5858                        size="100%-16 0 100% 16"
    5959                        tooltip=""
     
    7373        <object
    7474            type="image"
    75             style="stoneWindow"
     75            style="StonePanel"
    7676            size="50 0 322 100%"
    7777                >
     78                <object type="image"
     79                                ghost="true"
     80                                size="0 0 100% 100%"
     81                                sprite="MainMenuPanelShading"
     82                        />
     83
    7884                        <object name="productLogo"
    7985                                type="image"
     
    8894                <object name="menuLearnToPlayButton"
    8995                                      type="button"
    90                                       style="stoneButton"
     96                                      style="StoneButton"
    9197                                      size="4 4 100%-4 36"
    9298                                      tooltip_style="pgToolTip"
     
    100106                           
    101107                               <object name="menuSinglePlayerButton"
    102                                        style="stoneButton"
     108                                       style="StoneButton"
    103109                                       type="button"
    104110                                       size="4 36 100%-4 68"
     
    114120                               
    115121                                <object name="menuMultiPlayerButton"
    116                                         style="stoneButton"
     122                                        style="StoneButton"
    117123                                        type="button"
    118124                                        size="4 68 100%-4 100"
     
    128134
    129135                                <object name="menuEditorButton"
    130                                         style="stoneButton"
     136                                        style="StoneButton"
    131137                                        type="button"
    132138                                        size="4 100 100%-4 132"
     
    144150                               
    145151                                <object name="menuOptionsButton"
    146                                         style="stoneButton"
     152                                        style="StoneButton"
    147153                                        type="button"
    148154                                        size="4 132 100%-4 164"
     
    161167                                <object name="menuExitButton"
    162168                                        type="button"
    163                                         style="stoneButton"
     169                                        style="StoneButton"
    164170                                        size="4 164 100%-4 196"
    165171                                        tooltip_style="pgToolTip"
     
    175181
    176182<!--                        <object name="menuCampaignsButton"
    177                                        style="stoneButton"
     183                                       style="StoneButton"
    178184                                       type="button"
    179185                                       size="4 36 100%-4 68"
     
    189195-->
    190196<!--                        <object name="menuHistoryButton"
    191                                 style="stoneButton"
     197                                style="StoneButton"
    192198                                type="button"
    193199                                size="4 36 100%-4 68"
     
    226232                <!-- CONTACT METHODS -->
    227233                    <object type="button"
    228                         style="stoneButton"
     234                        style="StoneButton"
    229235                        size="4 100%-36 50%-2 100%-4"
    230236                    >
     
    238244
    239245                        <object type="button"
    240                                 style="stoneButton"
     246                                style="StoneButton"
    241247                                size="50%+2 100%-36 100%-4 100%-4"
    242248                        >
     
    272278                <!-- VERSION -->
    273279                <object name="versionNumber"
    274                     style="menuCenteredText"
     280                    style="CenteredLabelText"
    275281                    type="text"
    276282                    ghost="true"
Note: See TracChangeset for help on using the changeset viewer.