- Timestamp:
- 08/27/11 08:20:16 (13 years ago)
- Location:
- ps/trunk/binaries/data/mods/public/gui
- Files:
-
- 11 edited
-
civinfo/civinfo.js (modified) (6 diffs)
-
civinfo/civinfo.xml (modified) (12 diffs)
-
civinfo/setup.xml (modified) (1 diff)
-
civinfo/sprites.xml (modified) (1 diff)
-
common/common_sprites.xml (modified) (1 diff)
-
common/common_styles.xml (modified) (1 diff)
-
page_civinfo.xml (modified) (1 diff)
-
pregame/mainmenu.js (modified) (2 diffs)
-
pregame/mainmenu.xml (modified) (11 diffs)
-
session/session.xml (modified) (5 diffs)
-
summary/sprites.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/public/gui/civinfo/civinfo.js
r8827 r10103 1 1 2 2 var g_CivData = {}; 3 var TEXTCOLOR = "white" 3 4 4 5 function init(settings) … … 73 74 for(var i = 0; i < civInfo.CivBonuses.length; ++i) 74 75 { 75 bonusCaption += '[color="10 10 10"][font="serif-bold-14"]' + civInfo.CivBonuses[i].Name + '[/font] [icon="iconInfo" tooltip="'+civInfo.CivBonuses[i].History+'" tooltip_style="civInfoTooltip"]\n ' + civInfo.CivBonuses[i].Description + '\n[/color]'; 76 bonusCaption += '[color="' + TEXTCOLOR + '"][font="serif-bold-14"]' + civInfo.CivBonuses[i].Name + '[/font] [icon="iconInfo" tooltip="' 77 + civInfo.CivBonuses[i].History + '" tooltip_style="civInfoTooltip"]\n ' + civInfo.CivBonuses[i].Description + '\n[/color]'; 76 78 } 77 79 … … 80 82 for(var i = 0; i < civInfo.TeamBonuses.length; ++i) 81 83 { 82 bonusCaption += '[color="10 10 10"][font="serif-bold-14"]' + civInfo.TeamBonuses[i].Name + '[/font] [icon="iconInfo" tooltip="'+civInfo.TeamBonuses[i].History+'" tooltip_style="civInfoTooltip"]\n ' + civInfo.TeamBonuses[i].Description + '\n[/color]'; 84 bonusCaption += '[color="' + TEXTCOLOR + '"][font="serif-bold-14"]' + civInfo.TeamBonuses[i].Name + '[/font] [icon="iconInfo" tooltip="' 85 + civInfo.TeamBonuses[i].History + '" tooltip_style="civInfoTooltip"]\n ' + civInfo.TeamBonuses[i].Description + '\n[/color]'; 83 86 } 84 87 … … 94 97 for(var j = 0; j < faction.Technologies.length; ++j) 95 98 { 96 techCaption += '[color="10 10 10"][font="serif-bold-14"]' + faction.Technologies[j].Name + '[/font] [icon="iconInfo" tooltip="'+faction.Technologies[j].History+'" tooltip_style="civInfoTooltip"]\n ' + faction.Technologies[j].Description + '\n[/color]'; 99 techCaption += '[color="' + TEXTCOLOR + '"][font="serif-bold-14"]' + faction.Technologies[j].Name + '[/font] [icon="iconInfo" tooltip="' 100 + faction.Technologies[j].History + '" tooltip_style="civInfoTooltip"]\n ' + faction.Technologies[j].Description + '\n[/color]'; 97 101 } 98 102 } … … 102 106 for(var i = 0; i < civInfo.Structures.length; ++i) 103 107 { 104 techCaption += '[color="10 10 10"][font="serif-bold-14"]' + civInfo.Structures[i].Name + '[/font][/color] [icon="iconInfo" tooltip="'+ civInfo.Structures[i].History+'" tooltip_style="civInfoTooltip"]\n'; 108 techCaption += '[color="' + TEXTCOLOR + '"][font="serif-bold-14"]' + civInfo.Structures[i].Name + '[/font][/color] [icon="iconInfo" tooltip="' 109 + civInfo.Structures[i].History + '" tooltip_style="civInfoTooltip"]\n'; 105 110 } 106 111 … … 116 121 for(var j = 0; j < faction.Heroes.length; ++j) 117 122 { 118 heroCaption += '[color="10 10 10"][font="serif-bold-14"]' + faction.Heroes[j].Name + '[/font][/color] [icon="iconInfo" tooltip="'+faction.Heroes[j].History+'" tooltip_style="civInfoTooltip"]\n'; 123 heroCaption += '[color="' + TEXTCOLOR + '"][font="serif-bold-14"]' + faction.Heroes[j].Name + '[/font][/color] [icon="iconInfo" tooltip="' 124 + faction.Heroes[j].History + '" tooltip_style="civInfoTooltip"]\n'; 119 125 } 120 126 heroCaption += '\n'; -
ps/trunk/binaries/data/mods/public/gui/civinfo/civinfo.xml
r8497 r10103 11 11 <object type="image" z="0" sprite="bkTranslucent"/> 12 12 13 <object type="image" style=" wheatWindow" size="50%-450 50%-300 50%+450 50%+300">13 <object type="image" style="StonePanelLight" size="50%-466 50%-316 50%+466 50%+316"> 14 14 15 <object style=" wheatWindowTitleBar" type="text">Civilizations</object>15 <object style="StoneDialogTitleBar" type="text" size="50%-128 -16 50%+128 16">Civilizations</object> 16 16 17 17 <object type="button" style="wheatExit" tooltip_style="snToolTip"> … … 22 22 23 23 <!-- Civ selection --> 24 25 24 <object size="25 10 100% 30"> 26 25 <object … … 28 27 type="text" 29 28 font="serif-bold-20" 29 textcolor="white" 30 30 text_align="left" 31 size=" 0 0 300 100%">31 size="50%-320 10 50%-96 48"> 32 32 Civilization Selection 33 33 </object> 34 34 35 <object name="civSelection" type="dropdown" style=" wheatDropDown" size="50%-100 0 50%+100 30">35 <object name="civSelection" type="dropdown" style="StoneDropDown" size="50%-96 10 50%+96 40"> 36 36 <action on="SelectionChange">selectCiv(this.list_data[this.selected]);</action> 37 37 </object> … … 39 39 40 40 <!-- Civ data display --> 41 42 41 <object size="25 50 100%-25 65%-5"> 43 42 <object type="image" sprite="bgInfoHeading" size="0 0 100% 40"> … … 46 45 type="text" 47 46 font="serif-bold-16" 48 textcolor=" 255 255 255"47 textcolor="white" 49 48 text_align="left" 50 49 text_valign="center" … … 53 52 </object> 54 53 55 <object type="image" sprite=" bgInfoBox" size="0 40 33%-5 100%">54 <object type="image" sprite="TranslucentPanel" size="0 40 33%-5 100%"> 56 55 <object 57 56 name="civBonuses" 58 57 type="text" 59 58 font="serif-14" 59 textcolor="white" 60 60 text_align="left" 61 61 size="10 0 100%-10 100%-10" … … 68 68 type="text" 69 69 font="serif-14" 70 textcolor="white" 70 71 text_align="left" 71 72 size="10 0 100%-10 100%-10" … … 78 79 type="text" 79 80 font="serif-14" 81 textcolor="white" 80 82 text_align="left" 81 83 size="10 0 100%-10 100%-10" … … 87 89 88 90 <!-- Civ history display --> 89 90 91 <object size="25 65% 100%-25 100%-50"> 91 92 <object type="image" sprite="bgInfoHeading" size="0 0 100% 35"> … … 94 95 type="text" 95 96 font="serif-bold-16" 96 textcolor=" 255 255 255"97 textcolor="white" 97 98 text_align="left" 98 99 text_valign="center" … … 106 107 type="text" 107 108 font="serif-14" 109 textcolor="white" 108 110 text_align="left" 109 111 size="10 0 100% 100%" … … 115 117 <object 116 118 type="button" 117 style="wheatButton" 118 font="serif-16" 119 size="100%-140 100%-40 100%+3 100%+3" 120 >Done 119 style="StoneButton" 120 size="100%-150 100%-48 100%-24 100%-16" 121 >Close 121 122 <action on="Press"><![CDATA[ 122 123 Engine.PopGuiPage(); -
ps/trunk/binaries/data/mods/public/gui/civinfo/setup.xml
r8497 r10103 7 7 delay="50" 8 8 font="serif-12" 9 textcolor="white" 9 10 maxwidth="200" 10 11 offset="16 24" 11 12 sprite="bgTooltipBox" 12 textcolor="255 255 255"13 13 /> 14 14 </setup> -
ps/trunk/binaries/data/mods/public/gui/civinfo/sprites.xml
r8497 r10103 9 9 </sprite> 10 10 11 <sprite name="bgInfoBox">12 <image backcolor=" 120 700 100"11 <sprite name="bgInfoBox"> 12 <image backcolor="50 35 0 100" 13 13 size="0 0 100% 100%" 14 14 /> -
ps/trunk/binaries/data/mods/public/gui/common/common_sprites.xml
r10086 r10103 120 120 </sprite> 121 121 122 <!-- Stone Tooltip-->123 <sprite name=" stoneTooltip">122 <!-- TranslucentPanel --> 123 <sprite name="TranslucentPanel"> 124 124 <image backcolor="0 0 0 85" 125 125 size="0 0 100% 100%" -
ps/trunk/binaries/data/mods/public/gui/common/common_styles.xml
r10085 r10103 105 105 --> 106 106 107 <style name=" stoneTooltip"108 sprite=" stoneTooltip"107 <style name="TranslucentPanel" 108 sprite="TranslucentPanel" 109 109 buffer_zone="10" 110 110 font="serif-bold-stroke-14" -
ps/trunk/binaries/data/mods/public/gui/page_civinfo.xml
r8497 r10103 4 4 <include>common/sprite1.xml</include> 5 5 <include>common/styles.xml</include> 6 7 <include>common/common_sprites.xml</include> 8 <include>common/common_styles.xml</include> 9 6 10 <include>civinfo/civinfo.xml</include> 7 11 <include>civinfo/setup.xml</include> -
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js
r10097 r10103 100 100 101 101 // Update the submenu 102 var margin= 4;102 var MARGIN = 4; 103 103 var currentSubmenu; 104 function updateSubmenu(buttonName, newSubmenu )104 function updateSubmenu(buttonName, newSubmenu, numButtons) 105 105 { 106 106 // hide old submenu if possible … … 117 117 118 118 // find position of new submenu 119 var mainMenubutton = getGUIObjectByName(buttonName);119 var sourceButton = getGUIObjectByName(buttonName); 120 120 var verticalOffset = getGUIObjectByName("mainMenuButtons").size.top; 121 var top = verticalOffset + mainMenubutton.size.top - margin; 122 var bottom = verticalOffset + mainMenubutton.size.bottom + margin; 121 var buttonHeight = sourceButton.size.bottom - sourceButton.size.top; 122 123 var top = verticalOffset + sourceButton.size.top - MARGIN; 124 var bottom = verticalOffset + sourceButton.size.bottom + buttonHeight * (numButtons-1) + MARGIN; 123 125 124 126 // set position of new submenu -
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.xml
r10098 r10103 41 41 42 42 <object name="pgToolTip" 43 style=" stoneTooltip"43 style="TranslucentPanel" 44 44 type="text" 45 45 hidden="true" … … 58 58 size="100%-16 0 100% 16" 59 59 tooltip="" 60 z="20" 60 61 > 61 62 <action on="Press"><![CDATA[ … … 181 182 /> 182 183 184 <!-- LEARN TO PLAY BUTTON --> 183 185 <object name="menuLearnToPlayButton" 184 186 type="button" … … 194 196 </object> 195 197 198 <!-- SINGLEPLAYER BUTTON --> 196 199 <object name="menuSinglePlayerButton" 197 200 style="StoneButtonFancy" … … 203 206 Single Player 204 207 <action on="Press"><![CDATA[ 205 updateSubmenu("menuSinglePlayerButton", "submenuSinglePlayer" );208 updateSubmenu("menuSinglePlayerButton", "submenuSinglePlayer", 3); 206 209 ]]></action> 207 210 </object> 208 211 212 <!-- MULTIPLAYER BUTTON --> 209 213 <object name="menuMultiplayerButton" 210 214 style="StoneButtonFancy" … … 216 220 Multiplayer 217 221 <action on="Press"><![CDATA[ 218 updateSubmenu("menuMultiplayerButton", "submenuMultiplayer" );222 updateSubmenu("menuMultiplayerButton", "submenuMultiplayer", 2); 219 223 ]]></action> 220 224 </object> 221 222 <object name="menuEditorButton" 225 226 <!-- TOOLS AND OPTIONS BUTTON --> 227 <object name="menuToolsAndOptionsButton" 223 228 style="StoneButtonFancy" 224 229 type="button" 225 230 size="4 100 100%-4 132" 226 231 tooltip_style="pgToolTip" 227 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 "-editor"."232 tooltip="This will take you to the options menu. It does not work now, but someday it will." 228 233 > 229 Scenario Editor234 Tools <![CDATA[&]]> Options 230 235 <action on="Press"><![CDATA[ 231 if (Engine.AtlasIsAvailable()) 232 Engine.RestartInAtlas(); 233 else 234 messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2); 236 updateSubmenu("menuToolsAndOptionsButton", "submenuToolsAndOptions", 2); 235 237 ]]></action> 236 238 </object> 237 239 238 <object name="menuOptionsButton" 240 <!-- HISTORY BUTTON --> 241 <object name="menuHistoryButton" 239 242 style="StoneButtonFancy" 240 243 type="button" 241 244 size="4 132 100%-4 164" 242 245 tooltip_style="pgToolTip" 243 tooltip="This will take you to the options menu. It does not work now, but someday it will." 244 enabled="false" 246 tooltip="Learn about the six civilizations featured in 0 A.D." 245 247 > 246 Options248 History 247 249 <action on="Press"><![CDATA[ 248 // Open Options window. 249 openMainMenuSubWindow ("pgOptions"); 250 ]]></action> 250 Engine.PushGuiPage("page_civinfo.xml"); 251 ]]></action> 251 252 </object> 252 253 … … 266 267 ]]></action> 267 268 </object> 268 269 <!-- <object name="menuCampaignsButton"270 style="StoneButtonFancy"271 type="button"272 size="4 36 100%-4 68"273 tooltip_style="pgToolTip"274 tooltip="Want to play a campaign? Unfortunately you'll have to wait as they're not yet implemented."275 enabled="false"276 >277 Historical Campaigns278 <action on="Press"><![CDATA[279 openMainMenuSubWindow ("pgCampaigns");280 ]]></action>281 </object>282 -->283 <!-- <object name="menuHistoryButton"284 style="StoneButtonFancy"285 type="button"286 size="4 36 100%-4 68"287 tooltip_style="pgToolTip"288 tooltip="One day you will click this button and learn more about ancient history than any history teacher ever taught you."289 enabled="false"290 >291 History292 <action on="Press"><![CDATA[293 openMainMenuSubWindow ("pgHistory");294 ]]></action>295 </object>296 -->297 269 </object> 298 270 … … 300 272 <object size="8 100%-340 100%-8 100%-100" 301 273 type="image" 302 style=" stoneTooltip"274 style="TranslucentPanel" 303 275 > 304 276 … … 397 369 name="submenuScreen" 398 370 type="image" 371 hidden="true" 399 372 > 400 373 <action on="MouseEnter"> … … 421 394 tooltip="Click here to start a new single player game. (A very basic computer opponent is available for testing purposes.)" 422 395 > 423 Single Player 396 Single Player Matches 424 397 <action on="Press"><![CDATA[ 425 398 // Open Session Setup window. 426 399 Engine.PushGuiPage("page_gamesetup.xml", { type: "offline" }); 400 ]]></action> 401 </object> 402 403 <object name="subMenuCampaignButton" 404 type="button" 405 style="StoneButtonFancy" 406 size="0 32 100% 64" 407 tooltip_style="pgToolTip" 408 tooltip="Want to play a campaign? Unfortunately you'll have to wait as they're not yet implemented." 409 enabled="false" 410 > 411 Historical Campaigns 412 <action on="Press"><![CDATA[ 413 openMainMenuSubWindow ("pgCampaigns"); 427 414 ]]></action> 428 415 </object> … … 451 438 </object> 452 439 </object> 440 441 <object name="submenuToolsAndOptions" 442 type="image" 443 size="4 4 100%-4 100%-4" 444 tooltip_style="pgToolTip" 445 tooltip="The 0 A.D. Game Manual" 446 hidden="true" 447 > 448 <object name="submenuOptionsButton" 449 style="StoneButtonFancy" 450 type="button" 451 size="4 0 100%-4 32" 452 tooltip_style="pgToolTip" 453 tooltip="This will take you to the options menu. It does not work now, but someday it will." 454 enabled="false" 455 > 456 Options 457 <action on="Press"><![CDATA[ 458 // Open Options window. 459 openMainMenuSubWindow ("pgOptions"); 460 ]]></action> 461 </object> 462 463 <object name="submenuEditorButton" 464 style="StoneButtonFancy" 465 type="button" 466 size="4 32 100%-4 64" 467 tooltip_style="pgToolTip" 468 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 "-editor"." 469 > 470 Scenario Editor 471 <action on="Press"><![CDATA[ 472 if (Engine.AtlasIsAvailable()) 473 Engine.RestartInAtlas(); 474 else 475 messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2); 476 ]]></action> 477 </object> 478 </object> 453 479 </object> 454 480 -
ps/trunk/binaries/data/mods/public/gui/session/session.xml
r10085 r10103 194 194 195 195 <!-- Chat window --> 196 <object name="chatDialogPanel" size="50%-200 50%-46 50%+200 50%+46" type="image" hidden="true" s tyle="StonePanelThinBorder">196 <object name="chatDialogPanel" size="50%-200 50%-46 50%+200 50%+46" type="image" hidden="true" sprite="genericPanel"> 197 197 <object name="chatInput" size="16 12 100%-16 36" type="input" style="chatInput" max_length="80"> 198 198 <action on="Press">submitChatInput();</action> … … 299 299 <!-- ================================ ================================ --> 300 300 <object name="settingsDialogPanel" 301 style=" StonePanelThinBorder"301 style="TranslucentPanel" 302 302 type="image" 303 303 size="80%-180 50%-200 50%+180 50%+50" … … 499 499 <!-- Stance Selection --> 500 500 <object name="unitStancePanel" 501 style=" StonePanelThinBorder"501 style="TranslucentPanel" 502 502 size="0 100%-43 100% 100%" 503 503 type="text" … … 669 669 670 670 <object name="unitResearchPanel" 671 style=" StonePanelThinBorder"671 style="TranslucentPanel" 672 672 size="0 100%-56 100% 100%" 673 673 type="text" … … 697 697 size="4 -56 100% 0" 698 698 type="image" 699 style=" StonePanelThinBorder"699 style="TranslucentPanel" 700 700 > 701 701 <object size="-4 -2 52 54" type="image" sprite="snIconSheetTab" tooltip_style="sessionToolTipBottom" cell_id="3" tooltip="Production queue"> -
ps/trunk/binaries/data/mods/public/gui/summary/sprites.xml
r10085 r10103 7 7 8 8 <sprite name="bgInfoBox"> 9 <image backcolor=" 255 255 255 50" size="0 0 100% 100%" />9 <image backcolor="50 35 0 100" size="0 0 100% 100%" /> 10 10 </sprite> 11 11 </sprites>
Note:
See TracChangeset
for help on using the changeset viewer.
