From ae880411ab0ebc1f79b0de5513e2ff3f1cd70bb7 Mon Sep 17 00:00:00 2001 From: Bjanski Date: Thu, 4 Aug 2016 08:21:28 +0200 Subject: [PATCH] a lot of small fixes Code not tested --- .../Functions/fn_formatNbrToPrefixStr.sqf | 2 +- .../StatsBar/Functions/fn_getRespectStr.sqf | 2 +- .../StatsBar/Functions/fn_getTimerStr.sqf | 4 +- .../StatsBar/Functions/fn_sbThread.sqf | 28 ++--- .../ExAdClient/StatsBar/customize.sqf | 46 ++++++- .../ExAdClient/StatsBar/postInit.sqf | 79 ++++++++---- .../XM8/Apps/SB_Settings/onLoad.sqf | 113 +++++++++++------- 7 files changed, 189 insertions(+), 85 deletions(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf index 36801b3..3b8596e 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf @@ -18,6 +18,6 @@ */ params [["_nbr", 0, [0]], ["_response", ""], ["_prefix", ""]]; -if( _nbr > 1000 ) then { if( _nbr > 1000000 ) then { "K" } else { "M" } }else{ "" }; +_prefix = if( _nbr > 1000 ) then { if( _nbr > 1000000 ) then { "M" } else { "K" } }else{ "" }; format["%1%2", (str ( floor _nbr ) ) select [0, 3], _prefix] \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getRespectStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getRespectStr.sqf index 2d9a18a..e6658a7 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getRespectStr.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getRespectStr.sqf @@ -19,6 +19,6 @@ private["_img","_text"]; _img = [ExAd_SB_ICON_RESPECT] call ExAd_fnc_formatSBImage; -_text = ExileClientPlayerScore; +_text = [ExileClientPlayerScore] call ExAd_fnc_formatNbrToPrefixStr; [[_img, _text]] call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTimerStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTimerStr.sqf index ddfe30d..a0c5c85 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTimerStr.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTimerStr.sqf @@ -21,11 +21,11 @@ private["_request","_time","_hours","_minutes","_img","_text"]; _request = []; _time = serverTime; -_hours = 2 - floor (_time / 3600); +_hours = (ExAd_SB_Timer - 1) - floor (_time / 3600); _minutes = 59 - floor ((_time % 3600) / 60); _img = [ExAd_SB_ICON_TIMER] call ExAd_fnc_formatSBImage; -_text = format["%1:%2", _hours,_minutes]; +_text = format["%1:%2", _hours,(if(_minutes < 10 )then{format["0%1",_minutes]}else{_minutes})]; _request pushBack [_img,_text]; if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf index 37d9885..279262c 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf @@ -29,20 +29,20 @@ _text = format[ ExAd_SB_Text_Align, ExAd_SB_Text_Size, ExAd_SB_Text_Margin, - (if(ExAd_SB_Show_KD)then{call ExAd_fnc_getKDStr}else{""}), - (if(ExAd_SB_Show_HP)then{call ExAd_fnc_getHPStr}else{""}), - (if(ExAd_SB_Show_Thirst)then{call ExAd_fnc_getThirstStr}else{""}), - (if(ExAd_SB_Show_Hunger)then{call ExAd_fnc_getHungerStr}else{""}), - (if(ExAd_SB_Show_Wallet)then{call ExAd_fnc_getWalletStr}else{""}), - (if(ExAd_SB_Show_Bank)then{call ExAd_fnc_getBankStr}else{""}), - (if(ExAd_SB_Show_Respect)then{call ExAd_fnc_getRespectStr}else{""}), - (if(ExAd_SB_Show_FPS)then{call ExAd_fnc_getFPSStr}else{""}), - (if(ExAd_SB_Show_Time)then{call ExAd_fnc_getTimerStr}else{""}), - (if(ExAd_SB_Show_Temp)then{call ExAd_fnc_getTempStr}else{""}), - (if(ExAd_SB_Show_Grid)then{call ExAd_fnc_getGridStr}else{""}), - (if(ExAd_SB_Show_Compass)then{call ExAd_fnc_getCompassStr}else{""}), - (if(ExAd_SB_Show_PlayerCount)then{call ExAd_fnc_getPlayersStr}else{""}), - (if(ExAd_SB_Show_ClanCount)then{call ExAd_fnc_getClanStr}else{""}) + (if(ExAd_SB_Show_KD && ExAd_SB_Allow_KD)then{call ExAd_fnc_getKDStr}else{""}), + (if(ExAd_SB_Show_HP && ExAd_SB_Allow_HP)then{call ExAd_fnc_getHPStr}else{""}), + (if(ExAd_SB_Show_Thirst && ExAd_SB_Allow_Thirst)then{call ExAd_fnc_getThirstStr}else{""}), + (if(ExAd_SB_Show_Hunger && ExAd_SB_Allow_Hunger)then{call ExAd_fnc_getHungerStr}else{""}), + (if(ExAd_SB_Show_Wallet && ExAd_SB_Allow_Wallet)then{call ExAd_fnc_getWalletStr}else{""}), + (if(ExAd_SB_Show_Bank && ExAd_SB_Allow_Bank)then{call ExAd_fnc_getBankStr}else{""}), + (if(ExAd_SB_Show_Respect && ExAd_SB_Allow_Respect)then{call ExAd_fnc_getRespectStr}else{""}), + (if(ExAd_SB_Show_FPS && ExAd_SB_Allow_FPS)then{call ExAd_fnc_getFPSStr}else{""}), + (if(ExAd_SB_Show_Time && ExAd_SB_Allow_Time)then{call ExAd_fnc_getTimerStr}else{""}), + (if(ExAd_SB_Show_Temp && ExAd_SB_Allow_Temp)then{call ExAd_fnc_getTempStr}else{""}), + (if(ExAd_SB_Show_Grid && ExAd_SB_Allow_Grid)then{call ExAd_fnc_getGridStr}else{""}), + (if(ExAd_SB_Show_Compass && ExAd_SB_Allow_Compass)then{call ExAd_fnc_getCompassStr}else{""}), + (if(ExAd_SB_Show_PlayerCount && ExAd_SB_Allow_PlayerCount)then{call ExAd_fnc_getPlayersStr}else{""}), + (if(ExAd_SB_Show_ClanCount && ExAd_SB_Allow_ClanCount)then{call ExAd_fnc_getClanStr}else{""}) ]; _statsBarCtrl ctrlSetStructuredText parseText _text; diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf index f05c3cf..848beec 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf @@ -31,4 +31,48 @@ ExAd_SB_ICON_TIMER = "ExAdClient\StatsBar\Icons\ExAd_Restart.paa"; //STRING - P ExAd_SB_ICON_Wallet = "ExAdClient\StatsBar\Icons\ExAd_Wallet.paa"; //STRING - Path to POP TABS icon ExAd_SB_ICON_LOGO = "ExAdClient\Core\Img\ExAd_logo_128.paa"; //STRING - Path to logo -ExAd_SB_COMPONENTS_COLORS = ["#000000", "#440B00","#FE1106","#CA7400","#A9C700","#11BF03"]; //STRINGS - Array of color codes, from bad to good. \ No newline at end of file +ExAd_SB_COMPONENTS_COLORS = ["#000000", "#440B00","#FE1106","#CA7400","#A9C700","#11BF03"]; //STRINGS - Array of color codes, from bad to good. + +ExAd_SB_Timer = 3; //SCALAR - Restart time measured in hours. + +ExAd_SB_GUI_POS_Default = [safeZoneX, safeZoneY + safeZoneH - 32 * pixelH, safeZoneW, 30 * pixelH]; //ARRAY - Position with this attributes [x,y,w,h]; +ExAd_SB_GUI_TextColor_Default = [1,1,1,1]; //ARRAY - rgba array with values between 0-1, 0 => 0 | 255 => 1 +ExAd_SB_GUI_BgColor_Default = [0,0,0,0]; //ARRAY - rgba array with values between 0-1, 0 => 0 | 255 => 1 + +ExAd_SB_Text_Margin_Default = " "; //STRING - Margin between components measured in blankspaces +ExAd_SB_Text_InnerMargin_Default = ""; //STRING - Margin between icon and text within the component measured in blankspaces +ExAd_SB_Text_Font_Default = "OrbitronLight"; //STRING - Font family +ExAd_SB_Text_Align_Default = "center"; //STRING - Alignment (left,center,right) +ExAd_SB_Text_Size_Default = 1; //SCALAR - Text size ( 0-2 ) +ExAd_SB_Img_Size_Default = 1; //SCALAR - Icon size ( 0-2 ) + +ExAd_SB_Show_KD_Default = false; //BOOLEAN - Template, show kill death ratio +ExAd_SB_Show_HP_Default = true; //BOOLEAN - Template, show health +ExAd_SB_Show_Thirst_Default = false; //BOOLEAN - Template, show thirst +ExAd_SB_Show_Hunger_Default = false; //BOOLEAN - Template, show hunger +ExAd_SB_Show_Wallet_Default = true; //BOOLEAN - Template, show pop tabs on player +ExAd_SB_Show_Bank_Default = false; //BOOLEAN - Template, show pop tabs in locker +ExAd_SB_Show_Respect_Default = false; //BOOLEAN - Template, show respect +ExAd_SB_Show_FPS_Default = true; //BOOLEAN - Template, show fps +ExAd_SB_Show_Time_Default = true; //BOOLEAN - Template, show restart timer +ExAd_SB_Show_Temp_Default = true; //BOOLEAN - Template, show body temperature +ExAd_SB_Show_Grid_Default = true; //BOOLEAN - Template, show grid location +ExAd_SB_Show_Compass_Default = true; //BOOLEAN - Template, show compass +ExAd_SB_Show_PlayerCount_Default = true; //BOOLEAN - Template, show online players count +ExAd_SB_Show_ClanCount_Default = false; //BOOLEAN - Template, show online family members count + + +ExAd_SB_Allow_KD = true; //BOOLEAN - Allow showing kill death ratio +ExAd_SB_Allow_HP = true; //BOOLEAN - Allow showing health +ExAd_SB_Allow_Thirst = true; //BOOLEAN - Allow showing thirst +ExAd_SB_Allow_Hunger = true; //BOOLEAN - Allow showing hunger +ExAd_SB_Allow_Wallet = true; //BOOLEAN - Allow showing wallet +ExAd_SB_Allow_Bank = true; //BOOLEAN - Allow showing bank saldo +ExAd_SB_Allow_Respect = true; //BOOLEAN - Allow showing respect +ExAd_SB_Allow_FPS = true; //BOOLEAN - Allow showing fps +ExAd_SB_Allow_Time = true; //BOOLEAN - Allow showing restart timer +ExAd_SB_Allow_Temp = true; //BOOLEAN - Allow showing body temperature +ExAd_SB_Allow_Grid = true; //BOOLEAN - Allow showing grid location +ExAd_SB_Allow_Compass = true; //BOOLEAN - Allow showing compass +ExAd_SB_Allow_PlayerCount = true; //BOOLEAN - Allow showing players count +ExAd_SB_Allow_ClanCount = false; //BOOLEAN - Allow showing online family members count diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf index 86d756f..6380315 100644 --- a/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf @@ -34,7 +34,36 @@ if(isNil "ExAd_SB_ICON_THIRST")then{ExAd_SB_ICON_THIRST = "ExAdClient\StatsBar\I if(isNil "ExAd_SB_ICON_TIMER")then{ExAd_SB_ICON_TIMER = "ExAdClient\StatsBar\Icons\ExAd_Restart.paa";}; if(isNil "ExAd_SB_ICON_Wallet")then{ExAd_SB_ICON_Wallet = "ExAdClient\StatsBar\Icons\ExAd_Wallet.paa";}; if(isNil "ExAd_SB_ICON_LOGO")then{ExAd_SB_ICON_LOGO = "ExAdClient\Core\Img\ExAd_logo_128.paa";}; - + +if(isNil "ExAd_SB_GUI_POS_Default")then{ExAd_SB_GUI_POS_Default = [safeZoneX, safeZoneY + safeZoneH - 32 * pixelH, safeZoneW, 30 * pixelH];}; +if(isNil "ExAd_SB_GUI_TextColor_Default")then{ExAd_SB_GUI_TextColor_Default = [1,1,1,1];}; +if(isNil "ExAd_SB_GUI_BgColor_Default")then{ExAd_SB_GUI_BgColor_Default = [0,0,0,0];}; + +if(isNil "ExAd_SB_Text_Margin_Default")then{ExAd_SB_Text_Margin_Default = " ";}; +if(isNil "ExAd_SB_Text_InnerMargin_Default")then{ExAd_SB_Text_InnerMargin_Default = "";}; +if(isNil "ExAd_SB_Text_Font_Default")then{ExAd_SB_Text_Font_Default = "OrbitronLight";}; +if(isNil "ExAd_SB_Text_Align_Default")then{ExAd_SB_Text_Align_Default = "center";}; +if(isNil "ExAd_SB_Text_Size_Default")then{ExAd_SB_Text_Size_Default = 1;}; +if(isNil "ExAd_SB_Img_Size_Default")then{ExAd_SB_Img_Size_Default = 1;}; + +if(isNil "ExAd_SB_Timer")then{ExAd_SB_Timer = 3;}; + +if(isNil "ExAd_SB_Show_KD_Default")then{ExAd_SB_Show_KD_Default = false;}; +if(isNil "ExAd_SB_Show_HP_Default")then{ExAd_SB_Show_HP_Default = true;}; +if(isNil "ExAd_SB_Show_Thirst_Default")then{ExAd_SB_Show_Thirst_Default = false;}; +if(isNil "ExAd_SB_Show_Hunger_Default")then{ExAd_SB_Show_Hunger_Default = false;}; +if(isNil "ExAd_SB_Show_Wallet_Default")then{ExAd_SB_Show_Wallet_Default = true;}; +if(isNil "ExAd_SB_Show_Bank_Default")then{ExAd_SB_Show_Bank_Default = false;}; +if(isNil "ExAd_SB_Show_Respect_Default")then{ExAd_SB_Show_Respect_Default = false;}; +if(isNil "ExAd_SB_Show_FPS_Default")then{ExAd_SB_Show_FPS_Default = true;}; +if(isNil "ExAd_SB_Show_Time_Default")then{ExAd_SB_Show_Time_Default = true;}; +if(isNil "ExAd_SB_Show_Temp_Default")then{ExAd_SB_Show_Temp_Default = true;}; +if(isNil "ExAd_SB_Show_Grid_Default")then{ExAd_SB_Show_Grid_Default = true;}; +if(isNil "ExAd_SB_Show_Compass_Default")then{ExAd_SB_Show_Compass_Default = true;}; +if(isNil "ExAd_SB_Show_PlayerCount_Default")then{ExAd_SB_Show_PlayerCount_Default = true;}; +if(isNil "ExAd_SB_Show_ClanCount_Default")then{ExAd_SB_Show_ClanCount_Default = false;}; + + if(isNil "ExAd_SB_COMPONENTS_COLORS")then{ExAd_SB_COMPONENTS_COLORS = ["#000000", "#440B00","#FE1106","#CA7400","#A9C700","#11BF03"];}; if(isNil "ExAd_SB_Dialog_Layer")then{ExAd_SB_Dialog_Layer = 102;}; if(isNil "ExAd_SB_Dialog_CtrlLogo_IDC")then{ExAd_SB_Dialog_CtrlLogo_IDC = 1000;}; @@ -74,35 +103,37 @@ if(isNil "ExAd_SB_Dialog_CtrlBar_IDC")then{ExAd_SB_Dialog_CtrlBar_IDC = 1100;}; ["STR_ExAd_SB_APP_BTN_SHOW", "Show"], ["STR_ExAd_SB_APP_BTN_HIDE", "Hide"] ]; + + ExAd_SB_Update_Rate = profileNamespace getVariable ["ExAd_SB_Update_Rate", 1]; ExAd_SB_Active = profileNamespace getVariable ["ExAd_SB_Active", true]; -ExAd_SB_GUI_POS = profileNamespace getVariable ["ExAd_SB_GUI_POS", [safeZoneX, safeZoneY + safeZoneH - 32 * pixelH, safeZoneW, 30 * pixelH]]; -ExAd_SB_GUI_TextColor = profileNamespace getVariable ["ExAd_SB_GUI_TextColor", [1,1,1,1]]; -ExAd_SB_GUI_BgColor = profileNamespace getVariable ["ExAd_SB_GUI_BgColor", [0,0,0,0]]; +ExAd_SB_GUI_POS = profileNamespace getVariable ["ExAd_SB_GUI_POS", ExAd_SB_GUI_POS_Default]; +ExAd_SB_GUI_TextColor = profileNamespace getVariable ["ExAd_SB_GUI_TextColor", ExAd_SB_GUI_TextColor_Default]; +ExAd_SB_GUI_BgColor = profileNamespace getVariable ["ExAd_SB_GUI_BgColor", ExAd_SB_GUI_BgColor_Default]; -ExAd_SB_Text_Margin = profileNamespace getVariable ["ExAd_SB_Text_Margin", " "]; -ExAd_SB_Text_InnerMargin = profileNamespace getVariable ["ExAd_SB_Text_InnerMargin", ""]; -ExAd_SB_Text_Font = profileNamespace getVariable ["ExAd_SB_Text_Font", "OrbitronLight"]; -ExAd_SB_Text_Align = profileNamespace getVariable ["ExAd_SB_Text_Align", "center"]; -ExAd_SB_Text_Size = profileNamespace getVariable ["ExAd_SB_Text_Size", 1]; -ExAd_SB_Img_Size = profileNamespace getVariable ["ExAd_SB_Img_Size", 1]; +ExAd_SB_Text_Margin = profileNamespace getVariable ["ExAd_SB_Text_Margin", ExAd_SB_Text_Margin_Default]; +ExAd_SB_Text_InnerMargin = profileNamespace getVariable ["ExAd_SB_Text_InnerMargin", ExAd_SB_Text_InnerMargin_Default]; +ExAd_SB_Text_Font = profileNamespace getVariable ["ExAd_SB_Text_Font", ExAd_SB_Text_Font_Default]; +ExAd_SB_Text_Align = profileNamespace getVariable ["ExAd_SB_Text_Align", ExAd_SB_Text_Align_Default]; +ExAd_SB_Text_Size = profileNamespace getVariable ["ExAd_SB_Text_Size", ExAd_SB_Text_Size_Default]; +ExAd_SB_Img_Size = profileNamespace getVariable ["ExAd_SB_Img_Size", ExAd_SB_Img_Size_Default]; -ExAd_SB_Show_KD = profileNamespace getVariable ["ExAd_SB_Show_KD", false]; -ExAd_SB_Show_HP = profileNamespace getVariable ["ExAd_SB_Show_HP", true]; -ExAd_SB_Show_Thirst = profileNamespace getVariable ["ExAd_SB_Show_Thirst", false]; -ExAd_SB_Show_Hunger = profileNamespace getVariable ["ExAd_SB_Show_Hunger", false]; -ExAd_SB_Show_Wallet = profileNamespace getVariable ["ExAd_SB_Show_Wallet", true]; -ExAd_SB_Show_Bank = profileNamespace getVariable ["ExAd_SB_Show_Bank", false]; -ExAd_SB_Show_Respect = profileNamespace getVariable ["ExAd_SB_Show_Respect", false]; -ExAd_SB_Show_FPS = profileNamespace getVariable ["ExAd_SB_Show_FPS", true]; -ExAd_SB_Show_Time = profileNamespace getVariable ["ExAd_SB_Show_Time", true]; -ExAd_SB_Show_Temp = profileNamespace getVariable ["ExAd_SB_Show_Temp", true]; -ExAd_SB_Show_Grid = profileNamespace getVariable ["ExAd_SB_Show_Grid", true]; -ExAd_SB_Show_Compass = profileNamespace getVariable ["ExAd_SB_Show_Compass", true]; -ExAd_SB_Show_PlayerCount = profileNamespace getVariable ["ExAd_SB_Show_PlayerCount", true]; -ExAd_SB_Show_ClanCount = profileNamespace getVariable ["ExAd_SB_Show_ClanCount", false]; +ExAd_SB_Show_KD = profileNamespace getVariable ["ExAd_SB_Show_KD", ExAd_SB_Show_KD_Default]; +ExAd_SB_Show_HP = profileNamespace getVariable ["ExAd_SB_Show_HP", ExAd_SB_Show_HP_Default]; +ExAd_SB_Show_Thirst = profileNamespace getVariable ["ExAd_SB_Show_Thirst", ExAd_SB_Show_Thirst_Default]; +ExAd_SB_Show_Hunger = profileNamespace getVariable ["ExAd_SB_Show_Hunger", ExAd_SB_Show_Hunger_Default]; +ExAd_SB_Show_Wallet = profileNamespace getVariable ["ExAd_SB_Show_Wallet", ExAd_SB_Show_Wallet_Default]; +ExAd_SB_Show_Bank = profileNamespace getVariable ["ExAd_SB_Show_Bank", ExAd_SB_Show_Bank_Default]; +ExAd_SB_Show_Respect = profileNamespace getVariable ["ExAd_SB_Show_Respect", ExAd_SB_Show_Respect_Default]; +ExAd_SB_Show_FPS = profileNamespace getVariable ["ExAd_SB_Show_FPS", ExAd_SB_Show_FPS_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_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_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_COMPONENTS_ACTIVE_COLORS = profileNamespace getVariable ["ExAd_SB_COMPONENTS_ACTIVE_COLORS", true]; ExAd_SB_EXILE_HUD_ACTIVE = profileNamespace getVariable ["ExAd_SB_EXILE_HUD_ACTIVE", true]; diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf index d2a0689..dff2332 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf @@ -45,69 +45,98 @@ _newParent ctrlEnable true; //CheckBox setup //First col _cbStrAlign = "left"; _titleStrAlign = "center"; _cbStrTextColor = "#ffffff"; _cbStrTextFont = "PuristaMedium"; _cbStrTextSize = 1; -_cbKD = [_display,_newParent,([_slideClass,"cbShowKD"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop, _cbW, _cbH],"ExAd_SB_Show_KD = !ExAd_SB_Show_KD",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowKD"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_KD,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; -_cbHP = [_display,_newParent,([_slideClass,"cbShowHP"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 1, _cbW, _cbH],"ExAd_SB_Show_HP = !ExAd_SB_Show_HP",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowHP"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 1, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_HP,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_KD)then{ + _cbKD = [_display,_newParent,([_slideClass,"cbShowKD"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop, _cbW, _cbH],"ExAd_SB_Show_KD = !ExAd_SB_Show_KD",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowKD"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_KD,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbKD cbSetChecked ExAd_SB_Show_KD; +}; -_cbThirst = [_display,_newParent,([_slideClass,"cbShowThirst"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 2, _cbW, _cbH],"ExAd_SB_Show_Thirst = !ExAd_SB_Show_Thirst",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowThirst"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 2, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_THIRST,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_HP)then{ + _cbHP = [_display,_newParent,([_slideClass,"cbShowHP"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 1, _cbW, _cbH],"ExAd_SB_Show_HP = !ExAd_SB_Show_HP",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowHP"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 1, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_HP,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbHP cbSetChecked ExAd_SB_Show_HP; +}; -_cbHunger = [_display,_newParent,([_slideClass,"cbShowHunger"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 3, _cbW, _cbH],"ExAd_SB_Show_Hunger = !ExAd_SB_Show_Hunger",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowHunger"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 3, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_HUNGER,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Thirst)then{ + _cbThirst = [_display,_newParent,([_slideClass,"cbShowThirst"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 2, _cbW, _cbH],"ExAd_SB_Show_Thirst = !ExAd_SB_Show_Thirst",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowThirst"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 2, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_THIRST,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbThirst cbSetChecked ExAd_SB_Show_Thirst; +}; -_cbWallet = [_display,_newParent,([_slideClass,"cbShowWallet"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 4, _cbW, _cbH],"ExAd_SB_Show_Wallet = !ExAd_SB_Show_Wallet",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowWallet"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 4, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_WALLET,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Hunger)then{ + _cbHunger = [_display,_newParent,([_slideClass,"cbShowHunger"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 3, _cbW, _cbH],"ExAd_SB_Show_Hunger = !ExAd_SB_Show_Hunger",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowHunger"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 3, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_HUNGER,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbHunger cbSetChecked ExAd_SB_Show_Hunger; +}; -_cbBank = [_display,_newParent,([_slideClass,"cbShowBank"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 5, _cbW, _cbH],"ExAd_SB_Show_Bank = !ExAd_SB_Show_Bank",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowBank"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 5, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_BANK,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Wallet)then{ + _cbWallet = [_display,_newParent,([_slideClass,"cbShowWallet"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 4, _cbW, _cbH],"ExAd_SB_Show_Wallet = !ExAd_SB_Show_Wallet",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowWallet"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 4, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_WALLET,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbWallet cbSetChecked ExAd_SB_Show_Wallet; +}; -_cbRespect = [_display,_newParent,([_slideClass,"cbShowRespect"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 6, _cbW, _cbH],"ExAd_SB_Show_Respect = !ExAd_SB_Show_Respect",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowRespect"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 6, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_RESPECT,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Bank)then{ + _cbBank = [_display,_newParent,([_slideClass,"cbShowBank"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 5, _cbW, _cbH],"ExAd_SB_Show_Bank = !ExAd_SB_Show_Bank",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowBank"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 5, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_BANK,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbBank cbSetChecked ExAd_SB_Show_Bank; +}; + +if(ExAd_SB_Allow_Respect)then{ + _cbRespect = [_display,_newParent,([_slideClass,"cbShowRespect"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 6, _cbW, _cbH],"ExAd_SB_Show_Respect = !ExAd_SB_Show_Respect",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowRespect"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 6, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_RESPECT,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbRespect cbSetChecked ExAd_SB_Show_Respect; +}; _cbColor = [_display,_newParent,([_slideClass,"cbShowColor"] call ExAd_fnc_getNextIDC),[_leftCol, _cbCompTop + _rowH * 7, _cbW, _cbH],"ExAd_SB_COMPONENTS_ACTIVE_COLORS = !ExAd_SB_COMPONENTS_ACTIVE_COLORS",""] call ExAd_fnc_createCheckBox; [_display,_newParent,([_slideClass,"strTxtShowColor"] call ExAd_fnc_getNextIDC),[_cbStr, _cbCompTop + _rowH * 7, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_COLORS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; //Second col -_cbFPS = [_display,_newParent,([_slideClass,"cbShowFPS"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop, _cbW, _cbH],"ExAd_SB_Show_FPS = !ExAd_SB_Show_FPS",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowFPS"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_FPS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_FPS)then{ + _cbFPS = [_display,_newParent,([_slideClass,"cbShowFPS"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop, _cbW, _cbH],"ExAd_SB_Show_FPS = !ExAd_SB_Show_FPS",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowFPS"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_FPS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbFPS cbSetChecked ExAd_SB_Show_FPS; +}; -_cbTime = [_display,_newParent,([_slideClass,"cbShowTime"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 1, _cbW, _cbH],"ExAd_SB_Show_Time = !ExAd_SB_Show_Time",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowTime"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 1, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_TIMER,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Time)then{ + _cbTime = [_display,_newParent,([_slideClass,"cbShowTime"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 1, _cbW, _cbH],"ExAd_SB_Show_Time = !ExAd_SB_Show_Time",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowTime"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 1, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_TIMER,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbTime cbSetChecked ExAd_SB_Show_Time; +}; -_cbTemp = [_display,_newParent,([_slideClass,"cbShowTemp"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 2, _cbW, _cbH],"ExAd_SB_Show_Temp = !ExAd_SB_Show_Temp",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowTemp"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 2, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_TEMP,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Temp)then{ + _cbTemp = [_display,_newParent,([_slideClass,"cbShowTemp"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 2, _cbW, _cbH],"ExAd_SB_Show_Temp = !ExAd_SB_Show_Temp",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowTemp"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 2, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_TEMP,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbTemp cbSetChecked ExAd_SB_Show_Temp; +}; -_cbGrid = [_display,_newParent,([_slideClass,"cbShowGrid"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 3, _cbW, _cbH],"ExAd_SB_Show_Grid = !ExAd_SB_Show_Grid",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowGrid"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 3, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_GRID,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Grid)then{ + _cbGrid = [_display,_newParent,([_slideClass,"cbShowGrid"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 3, _cbW, _cbH],"ExAd_SB_Show_Grid = !ExAd_SB_Show_Grid",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowGrid"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 3, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_GRID,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbGrid cbSetChecked ExAd_SB_Show_Grid; +}; -_cbCompass = [_display,_newParent,([_slideClass,"cbShowCompass"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 4, _cbW, _cbH],"ExAd_SB_Show_Compass = !ExAd_SB_Show_Compass",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowCompass"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 4, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_COMPASS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_Compass)then{ + _cbCompass = [_display,_newParent,([_slideClass,"cbShowCompass"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 4, _cbW, _cbH],"ExAd_SB_Show_Compass = !ExAd_SB_Show_Compass",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowCompass"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 4, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_COMPASS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbCompass cbSetChecked ExAd_SB_Show_Compass; +}; -_cbPlayers = [_display,_newParent,([_slideClass,"cbShowPlayers"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 5, _cbW, _cbH],"ExAd_SB_Show_PlayerCount = !ExAd_SB_Show_PlayerCount",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowPlayers"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 5, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_PLAYERS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_PlayerCount)then{ + _cbPlayers = [_display,_newParent,([_slideClass,"cbShowPlayers"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 5, _cbW, _cbH],"ExAd_SB_Show_PlayerCount = !ExAd_SB_Show_PlayerCount",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowPlayers"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 5, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_PLAYERS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbPlayers cbSetChecked ExAd_SB_Show_PlayerCount; +}; -_cbClan = [_display,_newParent,([_slideClass,"cbShowClan"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 6, _cbW, _cbH],"ExAd_SB_Show_ClanCount = !ExAd_SB_Show_ClanCount",""] call ExAd_fnc_createCheckBox; -[_display,_newParent,([_slideClass,"strTxtShowClan"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 6, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_CLAN_MEMBERS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +if(ExAd_SB_Allow_ClanCount)then{ + _cbClan = [_display,_newParent,([_slideClass,"cbShowClan"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 6, _cbW, _cbH],"ExAd_SB_Show_ClanCount = !ExAd_SB_Show_ClanCount",""] call ExAd_fnc_createCheckBox; + [_display,_newParent,([_slideClass,"strTxtShowClan"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 6, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_CLAN_MEMBERS,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; + _cbClan cbSetChecked ExAd_SB_Show_ClanCount; +}; _cbHUD = [_display,_newParent,([_slideClass,"cbShowHUD"] call ExAd_fnc_getNextIDC),[_rightCol, _cbCompTop + _rowH * 7, _cbW, _cbH],"ExAd_SB_EXILE_HUD_ACTIVE = !ExAd_SB_EXILE_HUD_ACTIVE;call ExAd_fnc_toggleExileHUD",""] call ExAd_fnc_createCheckBox; [_display,_newParent,([_slideClass,"strTxtShowHUD"] call ExAd_fnc_getNextIDC),[_rightCbStr, _cbCompTop + _rowH * 7, _cbStrW, _rowH],STR_ExAd_SB_APP_CB_HIDE_EXILE_SB,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; -_cbKD cbSetChecked ExAd_SB_Show_KD; -_cbHP cbSetChecked ExAd_SB_Show_HP; -_cbThirst cbSetChecked ExAd_SB_Show_Thirst; -_cbHunger cbSetChecked ExAd_SB_Show_Hunger; -_cbWallet cbSetChecked ExAd_SB_Show_Wallet; -_cbBank cbSetChecked ExAd_SB_Show_Bank; -_cbRespect cbSetChecked ExAd_SB_Show_Respect; -_cbFPS cbSetChecked ExAd_SB_Show_FPS; -_cbTime cbSetChecked ExAd_SB_Show_Time; -_cbTemp cbSetChecked ExAd_SB_Show_Temp; -_cbGrid cbSetChecked ExAd_SB_Show_Grid; -_cbCompass cbSetChecked ExAd_SB_Show_Compass; -_cbPlayers cbSetChecked ExAd_SB_Show_PlayerCount; -_cbClan cbSetChecked ExAd_SB_Show_ClanCount; _cbColor cbSetChecked ExAd_SB_COMPONENTS_ACTIVE_COLORS; _cbHUD cbSetChecked !ExAd_SB_EXILE_HUD_ACTIVE;