Name of fashion: statistics per session in a hangar
Version: 0.8.8.5
Author: STL1te, Dellux Translated by CBARoughneck -G-

Description: this MOD adds to the list of service messages (created by screenshot, ended the fight, something bought in a store, and so on) various statistics for the session.
There is a settings file for customizing the appearance of the simplest fashion. Has the ability to store up to reset statistics button.

Installation: Copy the contents of the archive in-"res_mods \ x.x.x, where x.x.x is the current version of the game
        
Setting:
    The file SessionStatConfig.cfg is responsible for setting the fashion. It is recommended that you edit it with a text editor Notepad ++. 
    Standard config:
    {
        ' saveStats ': true,//whether to save the statistics after you restart a client? true, false, Yes, no.
        "resetDayStats": true//Reset the stats every day in UTC time (04:00 GMT). Does not work with "saveStats": false.
        ' forcedReset ': false,//whether to reset stats force when running client if it is time to reset.  true, false, Yes, no. Does not work with "resetDayStats": false.
        "message": 
            {
                "icon": "./maps/icons/library/BattleResultIcon-1.png,//message Icon with statistics.
                "type": "red",//the background color of the message statistics. Can be: grey, lightGrey, red, green, yellow, and the format {{c:winsRate}} macros, etc. If there are sections
                with the winsRate, etc. in the section "typeColor". Learn more about macros colors below.
                "typeColor"://color macro settings for ' type '
                    {
                        "winsRate": [
                            { "value": 50,  "color": "red"    }, // < 50%Wins
                            { "value": 60,  "color": "yellow" }, // < 60%Wins
                            { "value": 101, "color": "green"  }  // < 101%Wins
                        ]
                    },
                //Example
                "format": "<b>My Session Stats: <tab><img src='img://../../res_mods/0.8.8/scripts/client/mods/SessionStat/{{c:avgDmgDealt}}.png' width='32' height='32' align='baseline' vspace='-14'>\n<img src='img://gui/maps/icons/library/dossier/wins40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Wins / Battles:</font><tab><tab><font color='{{c:winsCount}}'>{{winsCount}}</font> / <font color='{{c:battlesCount}}'>{{battlesCount}}</font>    <font color='{{c:winsRate}}'>{{winsRate}}</font>\n<img src='img://gui/maps/icons/library/dossier/avgExp40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Experience</font> <font color=''>(average.)</font>:<tab><tab><font color='{{c:totalXP}}'>{{totalXP}}</font> <font color='{{c:avgTotalXP}}'>({{avgTotalXP}})</font>\n<img src='img://gui/maps/icons/library/dossier/maxExp40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Experience х</font> <font color=''>(average.)</font>:<tab><font color='{{c:totalXPRatio}}'>{{totalXPRatio}}</font> <font color='{{c:avgTotalXPRatio}}'>({{avgTotalXPRatio}})</font>\n <img src='img://gui/maps/icons/library/FreeXpIcon-2.png' width='16' height='16' align='baseline' vspace='-4'><font color=''>Free experience:</font><tab><font color='{{c:freeXP}}'>{{freeXP}}</font>\n <img src='img://gui/maps/icons/library/CreditsIcon-2.png' width='16' height='16' align='baseline' vspace='-4'><font color=''>Credits:</font><tab><tab><font color='{{c:credits}}'>{{credits}}</font>\n <img src='img://gui/maps/icons/library/GoldIcon-2.png' width='16' height='16' align='baseline' vspace='-4'><font color=''>Gold:</font><tab><tab><tab><font color='{{c:gold}}'>{{gold}}</font>\n<img src='img://gui/maps/icons/library/dossier/avgDamage40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Damage Dealt</font> <font color=''>(average.)</font>:<tab><font color='{{c:damageDealt}}'>{{damageDealt}}</font> <font color='{{c:avgDmgDealt}}'>({{avgDmgDealt}})</font>\n <img src='img://gui/maps/icons/library/FreeXpIcon-1.png' width='16' height='16' align='baseline' vspace='-4'><font color=''>Damage Received:</font><tab><tab><font color='{{c:damageReceived}}'>{{damageReceived}}</font>    <font color='{{c:damageRatio}}'>({{damageRatio}})</font>\n<img src='img://gui/maps/icons/library/dossier/maxDestroyed40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Kills</font> <font color=''>(average.)</font>:<tab><tab><font color='{{c:fragsCount}}'>{{fragsCount}}</font> <font color='{{c:avgFragsCount}}'>({{avgFragsCount}})</font>\n<img src='img://gui/maps/icons/library/dossier/hits40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Hits:</font><tab><tab><font color='{{c:hitsCount}}'>{{hitsCount}}</font> / <font color='{{c:shotsCount}}'>{{shotsCount}}</font>    <font color='{{c:hitsRate}}'>{{hitsRate}}</font>\n<img src='img://gui/maps/icons/library/dossier/survival40x32.png' width='20' height='16' align='baseline' vspace='-4'><font color=''>Deaths:</font><tab><tab><tab><font color='{{c:deathsCount}}'>{{deathsCount}}</font>    <font color='{{c:fragsRatio}}'>({{fragsRatio}})</font>\n <img src='img://gui/maps/icons/library/alertIcon.png' width='16' height='16' align='baseline' vspace='-4'><font color=''>Detected:</font><tab><tab><font color='{{c:spottedCount}}'>{{spottedCount}}</font></b>\n<font size='11'>To reset statistics button twice</font></font>",
            "statsColor":
                {
                    "winsRate": [
                        { "value": 50,  "color": "#CC0000" }, // < 50%Wins
                        { "value": 60,  "color": "#FFCC00" }, // < 60%Wins
                        { "value": 101, "color": "#00CC00" }  // < 101%Wins
                    ],
                    "credits": [
                        { "value": 0,         "color": "#CC0000" }, // < 0 credits
                        { "value": 999999999, "color": "#00CC00" }  // < 999999999 credits
                    ]
                }
            }
    }
    
    The format of the message ("format" tag):
        The format is a plain HTML string with the ability to insert a macro. Each macro has the form: {{macro name}}.
        Instead of these macros is eventually placed a value of statistics.
        Macros: statistics values
            {{winsCount}}-voWins
            {{battlesCount}} — number of fights
            {{winsRate}}-ProcentWins
            {{totalXP}}-number experience without increasing conversion rates
            {{avgTotalXP}}-the average number of experience without taking account of the increasing coefficients for battle
            {{totalXPRatio}}-number of experience taking into account increasing conversion rates
            {{avgTotalXPRatio}}-the average number of experience, taking into account the increasing coefficients for battle
            {{freeXP}}-number free experience
            {{credits}}-number of credits
            {{gold}}-quantity of gold
            {{damageDealt}}-number of damage dealt
            {{damageReceived}}-number of received damage
            {{avgDmgDealt}}-Average damage per fight
            {{damageRatio}}-coefficient of damage ({{damageDealt}}/{{damageReceived}})
            {{fragsCount}}-number of Frags
            {{avgFragsCount}}-the average number of Frags per fight
            {{deathsCount}}-number of deaths
            {{fragsRatio}}-coefficient of destruction ({{fragsCount}}/{{deathsCount}})
            {{shotsCount}}-number of shots
            {{hitsCount}}-number of hits
            {{hitsRate}}-the percentage of hits
            {{spottedCount}}-number of opponents
        Макросы цвета:
            If the "statsColor" of a subsection named macro values (winsCount, winsRate, credits, etc.)
            macros can use color format {{c:winsCount}}, {{c:credits}}, {{c:winsRate}}, etc.
            Number of block type {"value": 50, "color": "#CC0000"} is not limited, the "color" is color for
            the value of the parameter < value.
            For example, in the standard config above to set dynamic color for the "winsRate" we set in the partition
            "format" the following HTML code: <font color='{{c:winsRate}}'>{{winsRate}}</font>