Ticket #4187: WinLosePatch_swords.diff
File WinLosePatch_swords.diff, 5.5 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/credits/texts/programming.json
94 94 {"nick": "infyquest", "name": "Vijay Kiran Kamuju"}, 95 95 {"nick": "IronNerd", "name": "Matthew McMullan"}, 96 96 {"nick": "Itms", "name": "Nicolas Auvray"}, 97 97 {"nick": "Jaison", "name": "Marco tom Suden"}, 98 98 {"nick": "jammus", "name": "James Scott"}, 99 {"nick": "javiergodas", "name": "Javier Godas Vieitez"}, 99 100 {"nick": "Jgwman"}, 100 101 {"nick": "JonBaer", "name": "Jon Baer"}, 101 102 {"nick": "Josh", "name": "Joshua J. Bakita"}, 102 103 {"nick": "jP_wanN", "name": "Jonas Platte"}, 103 104 {"nick": "Jubalbarca", "name": "James Baillie"}, -
binaries/data/mods/public/gui/summary/summary.js
const g_MaxHeadingTitle= 8; 3 3 // const for filtering long collective headings 4 4 const g_LongHeadingWidth = 250; 5 5 6 6 const g_PlayerBoxYSize = 40; 7 7 const g_PlayerBoxGap = 2; 8 const g_PlayerBoxAlpha = " 32";8 const g_PlayerBoxAlpha = " 50"; 9 9 const g_PlayerColorBoxAlpha = " 255"; 10 10 const g_TeamsBoxYStart = 40; 11 11 12 12 // Colors used for units and buildings 13 13 const g_TrainedColor = '[color="201 255 200"]'; … … function updatePanelData(panelInfo) 89 89 else 90 90 playerBoxesCounts[playerState.team+1] += 1; 91 91 92 92 let positionObject = playerBoxesCounts[playerState.team+1] - 1; 93 93 let rowPlayer = "playerBox[" + positionObject + "]"; 94 let playerOutcome = "playerOutcome[" + positionObject + "]"; 94 95 let playerNameColumn = "playerName[" + positionObject + "]"; 95 let playerColorBoxColumn = "playerColorBox[" + positionObject + "]";96 96 let playerCivicBoxColumn = "civIcon[" + positionObject + "]"; 97 97 let playerCounterValue = "valueData[" + positionObject + "]"; 98 98 99 99 if (playerState.team != -1) 100 100 { 101 101 rowPlayer = "playerBoxt[" + playerState.team + "][" + positionObject + "]"; 102 playerOutcome = "playerOutcomet[" + playerState.team + "][" + positionObject + "]"; 102 103 playerNameColumn = "playerNamet[" + playerState.team + "][" + positionObject + "]"; 103 playerColorBoxColumn = "playerColorBoxt[" + playerState.team + "][" + positionObject + "]";104 104 playerCivicBoxColumn = "civIcont[" + playerState.team + "][" + positionObject + "]"; 105 105 playerCounterValue = "valueDataTeam[" + playerState.team + "][" + positionObject + "]"; 106 106 } 107 107 108 108 let colorString = "color: " + … … function updatePanelData(panelInfo) 116 116 117 117 let boxSize = rowPlayerObject.size; 118 118 boxSize.right = rowPlayerObjectWidth; 119 119 rowPlayerObject.size = boxSize; 120 120 121 let playerColorBox = Engine.GetGUIObjectByName(playerColorBoxColumn); 122 playerColorBox.sprite = colorString + g_PlayerColorBoxAlpha; 121 let outcome = Engine.GetGUIObjectByName(playerOutcome); 122 if (playerState.state == "won") 123 { 124 outcome.sprite = "stretched:session/icons/stances/violent.png"; 125 outcome.tooltip = translate("Victory"); 126 } 127 else if (playerState.state == "defeated") 128 { 129 outcome.sprite = "stretched:session/icons/stances/passive.png"; 130 outcome.tooltip = translate("Defeated"); 131 } 123 132 124 133 Engine.GetGUIObjectByName(playerNameColumn).caption = g_GameData.sim.playerStates[i+1].name; 125 134 126 135 let civIcon = Engine.GetGUIObjectByName(playerCivicBoxColumn); 127 136 civIcon.sprite = "stretched:" + g_CivData[playerState.civ].Emblem; -
binaries/data/mods/public/gui/summary/summary.xml
117 117 <object type="image" name="teamBoxt[i]" size="0 65 100% 100%-50" hidden="true"> 118 118 <object type="text" name="teamNameHeadingt[i]" size="15 5 100% 100%" style="ModernLeftTabLabelText"/> 119 119 <object size="0 30 100% 100%"> 120 120 <repeat count="8" var="n"> 121 121 <object type="image" name="playerBoxt[i][n]" size="10 0 10 30" hidden="true"> 122 <object type="image" sprite="ForegroundBox" size="10 9 34 33"> 123 <object name="playerColorBoxt[i][n]" type="image" size="2 2 22 22"/> 124 </object> 122 <object name="playerOutcomet[i][n]" type="image" size="4 8 30 35"/> 125 123 <object name="playerNamet[i][n]" type="text" size="40 2 208 100%" style="ModernLeftLabelText"/> 126 124 <object name="civIcont[i][n]" type="image" size="208 5 240 37" /> 127 125 <repeat var="x" count="8"> 128 126 <object name="valueDataTeam[i][n][x]" type="text" style="ModernTabLabelText"> 129 127 </object> … … 140 138 </repeat> 141 139 142 140 <object type="image" name="noTeamsBox" size="0 65 100% 100%-50" hidden="true"> 143 141 <repeat count="8"> 144 142 <object type="image" name="playerBox[n]" size="10 0 10 30" hidden="true"> 145 <object type="image" sprite="ForegroundBox" size="10 9 34 33"> 146 <object name="playerColorBox[n]" type="image" size="2 2 22 22"/> 147 </object> 143 <object name="playerOutcome[n]" type="image" size="4 8 30 35"/> 148 144 <object name="playerName[n]" type="text" size="40 2 208 100%" style="ModernLeftLabelText"/> 149 145 <object name="civIcon[n]" type="image" size="208 5 240 37"/> 150 146 <repeat var="x" count="8"> 151 147 <object name="valueData[n][x]" type="text" style="ModernTabLabelText"> 152 148 </object>