Ticket #4187: WinLosePatchV2.diff

File WinLosePatchV2.diff, 4.6 KB (added by javiergodas, 3 years ago)
  • binaries/data/mods/public/gui/credits/texts/programming.json

     
    9696            {"nick": "Itms", "name": "Nicolas Auvray"},
    9797            {"nick": "Jaison", "name": "Marco tom Suden"},
    9898            {"nick": "jammus", "name": "James Scott"},
     99                        {"nick": "javiergodas", "name": "Javier Godas Vieitez"},
    99100            {"nick": "Jgwman"},
    100101            {"nick": "JonBaer", "name": "Jon Baer"},
    101102            {"nick": "Josh", "name": "Joshua J. Bakita"},
  • binaries/data/mods/public/gui/summary/summary.js

     
    9191
    9292        let positionObject = playerBoxesCounts[playerState.team+1] - 1;
    9393        let rowPlayer = "playerBox[" + positionObject + "]";
     94                let playerOutcome = "playerOutcome[" + positionObject + "]";
    9495        let playerNameColumn = "playerName[" + positionObject + "]";
    9596        let playerColorBoxColumn = "playerColorBox[" + positionObject + "]";
    9697        let playerCivicBoxColumn = "civIcon[" + positionObject + "]";
     
    99100        if (playerState.team != -1)
    100101        {
    101102            rowPlayer = "playerBoxt[" + playerState.team + "][" + positionObject + "]";
     103                        playerOutcome = "playerOutcomet[" + playerState.team + "][" + positionObject + "]";
    102104            playerNameColumn = "playerNamet[" + playerState.team + "][" + positionObject + "]";
    103105            playerColorBoxColumn = "playerColorBoxt[" + playerState.team + "][" + positionObject + "]";
    104106            playerCivicBoxColumn = "civIcont[" + playerState.team + "][" + positionObject + "]";
     
    121123        let playerColorBox = Engine.GetGUIObjectByName(playerColorBoxColumn);
    122124        playerColorBox.sprite = colorString + g_PlayerColorBoxAlpha;
    123125
     126        let outcome = Engine.GetGUIObjectByName(playerOutcome);
     127        if (playerState.state == "won")
     128        {
     129            outcome.sprite = "stretched:session/icons/laurels.png";
     130            outcome.tooltip = translate("Victory");
     131        }
     132        else if (playerState.state == "defeated")
     133        {
     134            outcome.sprite = "stretched:session/icons/kill.png";
     135            outcome.tooltip = translate("Defeated");
     136        }
     137
    124138        Engine.GetGUIObjectByName(playerNameColumn).caption = g_GameData.sim.playerStates[i+1].name;
    125139
    126140        let civIcon = Engine.GetGUIObjectByName(playerCivicBoxColumn);
  • binaries/data/mods/public/gui/summary/summary.xml

     
    119119                    <object size="0 30 100% 100%">
    120120                        <repeat count="8" var="n">
    121121                            <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>
    125                                 <object name="playerNamet[i][n]" type="text" size="40 2 208 100%" style="ModernLeftLabelText"/>
     122                                    <object name="playerColorBoxt[i][n]" type="image" size="2 2 40 40"/>
     123                                                                <object name="playerOutcomet[i][n]" type="image" size="6 4 37 39"/>
     124                                <object name="playerNamet[i][n]" type="text" size="50 2 208 100%" style="ModernLeftLabelText"/>
    126125                                <object name="civIcont[i][n]" type="image" size="208 5 240 37" />
    127126                                <repeat var="x" count="8">
    128127                                    <object name="valueDataTeam[i][n][x]" type="text" style="ModernTabLabelText">
     
    142141            <object type="image" name="noTeamsBox" size="0 65 100% 100%-50" hidden="true">
    143142                <repeat count="8">
    144143                    <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>
    148                         <object name="playerName[n]" type="text" size="40 2 208 100%" style="ModernLeftLabelText"/>
     144                            <object name="playerColorBox[n]" type="image" size="2 2 40 40"/>
     145                                                <object name="playerOutcome[n]" type="image" size="6 4 37 39"/>
     146                        <object name="playerName[n]" type="text" size="50 2 208 100%" style="ModernLeftLabelText"/>
    149147                        <object name="civIcon[n]" type="image" size="208 5 240 37"/>
    150148                        <repeat var="x" count="8">
    151149                            <object name="valueData[n][x]" type="text" style="ModernTabLabelText">