small fixes

This commit is contained in:
Bjanski 2016-08-04 10:39:27 +02:00
parent fe3447ddbc
commit a59474586e
3 changed files with 4 additions and 4 deletions

View File

@ -18,6 +18,6 @@
*/ */
params [["_nbr", 0, [0]], ["_response", ""], ["_prefix", ""]]; params [["_nbr", 0, [0]], ["_response", ""], ["_prefix", ""]];
_prefix = if( _nbr > 1000 ) then { if( _nbr > 1000000 ) then { "M" } else { "K" } }else{ "" }; _prefix = if( _nbr >= 1000 ) then { if( _nbr >= 1000000 ) then {_nbr = _nbr / 1000000; "M" } else {_nbr = _nbr / 1000; "K" } }else{ "" };
format["%1%2", (str ( floor _nbr ) ) select [0, 3], _prefix] format["%1%2", floor _nbr, _prefix]

View File

@ -32,7 +32,7 @@ class ExAd_STATSBAR
h = "64 * pixelH"; h = "64 * pixelH";
style=48; style=48;
colorBackground[]={0,0,0,0}; colorBackground[]={0,0,0,0};
colorText[]={1,1,1,0.4}; colorText[]={0,0,0,1};
font="TahomaB"; font="TahomaB";
sizeEx=0; sizeEx=0;
text = ""; text = "";

View File

@ -131,7 +131,7 @@ ExAd_SB_Show_FPS = profileNamespace getVariable ["ExAd_SB_Show_FPS", ExAd_SB_Sho
ExAd_SB_Show_Time = profileNamespace getVariable ["ExAd_SB_Show_Time", ExAd_SB_Show_Time_Default]; ExAd_SB_Show_Time = profileNamespace getVariable ["ExAd_SB_Show_Time", ExAd_SB_Show_Time_Default];
ExAd_SB_Show_Temp = profileNamespace getVariable ["ExAd_SB_Show_Temp", ExAd_SB_Show_Temp_Default]; ExAd_SB_Show_Temp = profileNamespace getVariable ["ExAd_SB_Show_Temp", ExAd_SB_Show_Temp_Default];
ExAd_SB_Show_Grid = profileNamespace getVariable ["ExAd_SB_Show_Grid", ExAd_SB_Show_Grid_Default]; ExAd_SB_Show_Grid = profileNamespace getVariable ["ExAd_SB_Show_Grid", ExAd_SB_Show_Grid_Default];
ExAd_SB_Show_Compass = profileNamespace getVariable ["ExAd_SB_Show_Compass", truExAd_SB_Show_Compass_Defaulte]; ExAd_SB_Show_Compass = profileNamespace getVariable ["ExAd_SB_Show_Compass", ExAd_SB_Show_Compass_Default];
ExAd_SB_Show_PlayerCount = profileNamespace getVariable ["ExAd_SB_Show_PlayerCount", ExAd_SB_Show_PlayerCount_Default]; ExAd_SB_Show_PlayerCount = profileNamespace getVariable ["ExAd_SB_Show_PlayerCount", ExAd_SB_Show_PlayerCount_Default];
ExAd_SB_Show_ClanCount = profileNamespace getVariable ["ExAd_SB_Show_ClanCount", ExAd_SB_Show_ClanCount_Default]; ExAd_SB_Show_ClanCount = profileNamespace getVariable ["ExAd_SB_Show_ClanCount", ExAd_SB_Show_ClanCount_Default];