new icons and stringtable inputs

This commit is contained in:
Bjanski 2016-08-03 22:34:42 +02:00
parent 8ef6f724bd
commit c78d91099a
43 changed files with 112 additions and 61 deletions

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -20,6 +20,7 @@
class StatsBar
{
file = "ExAdClient\StatsBar\Functions";
class formatNbrToPrefixStr {};
class formatSBImage {};
class formatSBOutput {};
class getBankStr {};

View File

@ -0,0 +1,23 @@
/*
fn_formatNbrToPrefixStr.sqf
Copyright 2016 Jan Babor
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
params [["_nbr", 0, [0]], ["_response", ""], ["_prefix", ""]];
if( _nbr > 1000 ) then { if( _nbr > 1000000 ) then { "K" } else { "M" } }else{ "" };
format["%1%2", (str ( floor _nbr ) ) select [0, 3], _prefix]

View File

@ -16,6 +16,6 @@
limitations under the License.
*/
params [["_src","",[""]],["_size",1,[0]]];
params [["_src","",[""]],["_size",ExAd_SB_Img_Size,[0]]];
format["<img size='%2' image='%1' />", _src,_size]

View File

@ -19,6 +19,6 @@
private["_img","_text"];
_img = [ExAd_SB_ICON_BANK] call ExAd_fnc_formatSBImage;
_text = player getVariable["ExileLocker",0];
_text = [player getVariable ["ExileLocker", 0]] call ExAd_fnc_formatNbrToPrefixStr;
[[_img, _text]] call ExAd_fnc_formatSBOutput

View File

@ -19,6 +19,6 @@
private["_img","_text"];
_img = [ExAd_SB_ICON_CLAN] call ExAd_fnc_formatSBImage;
_text = "1/1";
_text = "N/A";
[[_img, _text]] call ExAd_fnc_formatSBOutput

View File

@ -18,7 +18,7 @@
*/
private["_img","_dir"];
_img = [ExAd_SB_ICON_COMPASS,0.75] call ExAd_fnc_formatSBImage;
_img = [ExAd_SB_ICON_COMPASS] call ExAd_fnc_formatSBImage;
_dir = direction player;
try

View File

@ -20,7 +20,7 @@ private["_request","_img","_text"];
_request = [];
_img = "FPS";
_img = format["<t size='%1'>FPS</t>", ExAd_SB_Img_Size];
_text = floor diag_fps;
_request pushBack [_img,_text];

View File

@ -20,7 +20,7 @@ private["_img","_grid","_text"];
_grid = mapGridPosition player;
_img = [ExAd_SB_ICON_GRID, 1.4] call ExAd_fnc_formatSBImage;
_img = [ExAd_SB_ICON_GRID] call ExAd_fnc_formatSBImage;
_text = format["%1|%2",_grid select [0,3],_grid select [3,3]];
[[_img, _text]] call ExAd_fnc_formatSBOutput

View File

@ -20,7 +20,7 @@ private["_request","_img","_text"];
_request = [];
_img = [ExAd_SB_ICON_HUNGER,1.25] call ExAd_fnc_formatSBImage;
_img = [ExAd_SB_ICON_HUNGER] call ExAd_fnc_formatSBImage;
_text = round (ExileClientPlayerAttributes select 2);
_request pushBack [_img,_text];

View File

@ -18,7 +18,7 @@
*/
private["_img","_text"];
_img = [ExAd_SB_ICON_RESPECT,0.75] call ExAd_fnc_formatSBImage;
_img = [ExAd_SB_ICON_RESPECT] call ExAd_fnc_formatSBImage;
_text = ExileClientPlayerScore;
[[_img, _text]] call ExAd_fnc_formatSBOutput

View File

@ -20,7 +20,7 @@ private["_request","_img","_text"];
_request = [];
_img = [ExAd_SB_ICON_THIRST, 1.25] call ExAd_fnc_formatSBImage;
_img = [ExAd_SB_ICON_THIRST] call ExAd_fnc_formatSBImage;
_text = round (ExileClientPlayerAttributes select 3);
_request pushBack [_img,_text];

View File

@ -19,6 +19,6 @@
private["_img","_text"];
_img = [ExAd_SB_ICON_Wallet] call ExAd_fnc_formatSBImage;
_text = player getVariable ["ExileMoney", 0];
_text = [player getVariable ["ExileMoney", 0]] call ExAd_fnc_formatNbrToPrefixStr;
[[_img, _text]] call ExAd_fnc_formatSBOutput

View File

@ -28,6 +28,7 @@ profileNamespace setVariable ["ExAd_SB_Text_InnerMargin", ExAd_SB_Text_InnerMarg
profileNamespace setVariable ["ExAd_SB_Text_Font", ExAd_SB_Text_Font];
profileNamespace setVariable ["ExAd_SB_Text_Align", ExAd_SB_Text_Align];
profileNamespace setVariable ["ExAd_SB_Text_Size", ExAd_SB_Text_Size];
profileNamespace setVariable ["ExAd_SB_Img_Size", ExAd_SB_Img_Size];
profileNamespace setVariable ["ExAd_SB_Show_KD", ExAd_SB_Show_KD];
profileNamespace setVariable ["ExAd_SB_Show_HP", ExAd_SB_Show_HP];

View File

@ -16,19 +16,19 @@
limitations under the License.
*/
ExAd_SB_ICON_BANK = "exile_assets\texture\ui\map_safe_ca.paa";
ExAd_SB_ICON_CLAN = "exile_assets\texture\ui\xm8_app_clan_ca.paa";
ExAd_SB_ICON_COMPASS = "ExAdClient\StatsBar\icons\compass.paa";
ExAd_SB_ICON_GRID = "\a3\ui_f\data\gui\rsc\rscdisplayarsenal\compass_ca.paa";
ExAd_SB_ICON_HP = "exile_assets\texture\ui\xm8_app_health_scanner_ca.paa";
ExAd_SB_ICON_HUNGER = "ExAdClient\StatsBar\icons\hunger.paa";
ExAd_SB_ICON_KD = "\a3\ui_f\data\gui\cfg\respawnroles\recon_ca.paa";
ExAd_SB_ICON_PLAYERS = "ExAdClient\StatsBar\icons\players.paa";
ExAd_SB_ICON_RESPECT = "ExAdClient\StatsBar\icons\respect.paa";
ExAd_SB_ICON_TEMP = "ExAdClient\StatsBar\icons\thermostat.paa";
ExAd_SB_ICON_THIRST = "ExAdClient\StatsBar\icons\thirst.paa";
ExAd_SB_ICON_TIMER = "ExAdClient\StatsBar\icons\restart.paa";
ExAd_SB_ICON_Wallet = "exile_assets\texture\ui\poptab_ca.paa";
ExAd_SB_ICON_LOGO = "ExAdClient\Core\Img\logo.paa";
ExAd_SB_ICON_BANK = "ExAdClient\StatsBar\Icons\ExAd_Bank.paa"; //STRING - Path to bank icon
ExAd_SB_ICON_CLAN = "ExAdClient\StatsBar\Icons\ExAd_Family.paa"; //STRING - Path to family icon
ExAd_SB_ICON_COMPASS = "ExAdClient\StatsBar\Icons\ExAd_Compass.paa"; //STRING - Path to compass icon
ExAd_SB_ICON_GRID = "ExAdClient\StatsBar\Icons\ExAd_Grid.paa"; //STRING - Path to grid icon
ExAd_SB_ICON_HP = "ExAdClient\StatsBar\Icons\ExAd_Health.paa"; //STRING - Path to health icon
ExAd_SB_ICON_HUNGER = "ExAdClient\StatsBar\Icons\ExAd_Hunger.paa"; //STRING - Path to hunger icon
ExAd_SB_ICON_KD = "ExAdClient\StatsBar\Icons\ExAd_KD.paa"; //STRING - Path to kill death ratio icon
ExAd_SB_ICON_PLAYERS = "ExAdClient\StatsBar\Icons\ExAd_Players.paa"; //STRING - Path to players icon
ExAd_SB_ICON_RESPECT = "ExAdClient\StatsBar\Icons\ExAd_Respect.paa"; //STRING - Path to respect icon
ExAd_SB_ICON_TEMP = "ExAdClient\StatsBar\Icons\ExAd_Temp.paa"; //STRING - Path to temperature icon
ExAd_SB_ICON_THIRST = "ExAdClient\StatsBar\Icons\ExAd_Thirst.paa"; //STRING - Path to thirst icon
ExAd_SB_ICON_TIMER = "ExAdClient\StatsBar\Icons\ExAd_Restart.paa"; //STRING - Path to restart icon
ExAd_SB_ICON_Wallet = "ExAdClient\StatsBar\Icons\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"]; //From bad to good.
ExAd_SB_COMPONENTS_COLORS = ["#000000", "#440B00","#FE1106","#CA7400","#A9C700","#11BF03"]; //STRINGS - Array of color codes, from bad to good.

View File

@ -20,19 +20,20 @@
_path = "ExAdClient\StatsBar\customize.sqf";
call compile preprocessFileLineNumbers _path;
if(isNil "ExAd_SB_ICON_BANK")then{ExAd_SB_ICON_BANK = "exile_assets\texture\ui\map_safe_ca.paa";};
if(isNil "ExAd_SB_ICON_CLAN")then{ExAd_SB_ICON_CLAN = "exile_assets\texture\ui\xm8_app_clan_ca.paa";};
if(isNil "ExAd_SB_ICON_COMPASS")then{ExAd_SB_ICON_COMPASS = "ExAdClient\StatsBar\icons\compass.paa";};
if(isNil "ExAd_SB_ICON_GRID")then{ExAd_SB_ICON_GRID = "\a3\ui_f\data\gui\rsc\rscdisplayarsenal\compass_ca.paa";};
if(isNil "ExAd_SB_ICON_HP")then{ExAd_SB_ICON_HP = "exile_assets\texture\ui\xm8_app_health_scanner_ca.paa";};
if(isNil "ExAd_SB_ICON_HUNGER")then{ExAd_SB_ICON_HUNGER = "ExAdClient\StatsBar\icons\hunger.paa";};
if(isNil "ExAd_SB_ICON_PLAYERS")then{ExAd_SB_ICON_PLAYERS = "ExAdClient\StatsBar\icons\players.paa";};
if(isNil "ExAd_SB_ICON_RESPECT")then{ExAd_SB_ICON_RESPECT = "ExAdClient\StatsBar\icons\respect.paa";};
if(isNil "ExAd_SB_ICON_TEMP")then{ExAd_SB_ICON_TEMP = "ExAdClient\StatsBar\icons\thermostat.paa";};
if(isNil "ExAd_SB_ICON_THIRST")then{ExAd_SB_ICON_THIRST = "ExAdClient\StatsBar\icons\thirst.paa";};
if(isNil "ExAd_SB_ICON_TIMER")then{ExAd_SB_ICON_TIMER = "ExAdClient\StatsBar\icons\restart.paa";};
if(isNil "ExAd_SB_ICON_Wallet")then{ExAd_SB_ICON_Wallet = "exile_assets\texture\ui\poptab_ca.paa";};
if(isNil "ExAd_SB_ICON_LOGO")then{ExAd_SB_ICON_LOGO = "";};
if(isNil "ExAd_SB_ICON_BANK")then{ExAd_SB_ICON_BANK = "ExAdClient\StatsBar\Icons\ExAd_Bank.paa";};
if(isNil "ExAd_SB_ICON_CLAN")then{ExAd_SB_ICON_CLAN = "ExAdClient\StatsBar\Icons\ExAd_Family.paa";};
if(isNil "ExAd_SB_ICON_COMPASS")then{ExAd_SB_ICON_COMPASS = "ExAdClient\StatsBar\Icons\ExAd_Compass.paa";};
if(isNil "ExAd_SB_ICON_GRID")then{ExAd_SB_ICON_GRID = "ExAdClient\StatsBar\Icons\ExAd_Grid.paa";};
if(isNil "ExAd_SB_ICON_HP")then{ExAd_SB_ICON_HP = "ExAdClient\StatsBar\Icons\ExAd_Health.paa";};
if(isNil "ExAd_SB_ICON_HUNGER")then{ExAd_SB_ICON_HUNGER = "ExAdClient\StatsBar\Icons\ExAd_Hunger.paa";};
if(isNil "ExAd_SB_ICON_KD")then{ExAd_SB_ICON_KD = "ExAdClient\StatsBar\Icons\ExAd_KD.paa";};
if(isNil "ExAd_SB_ICON_PLAYERS")then{ExAd_SB_ICON_PLAYERS = "ExAdClient\StatsBar\Icons\ExAd_Players.paa";};
if(isNil "ExAd_SB_ICON_RESPECT")then{ExAd_SB_ICON_RESPECT = "ExAdClient\StatsBar\Icons\ExAd_Respect.paa";};
if(isNil "ExAd_SB_ICON_TEMP")then{ExAd_SB_ICON_TEMP = "ExAdClient\StatsBar\Icons\ExAd_Temp.paa";};
if(isNil "ExAd_SB_ICON_THIRST")then{ExAd_SB_ICON_THIRST = "ExAdClient\StatsBar\Icons\ExAd_Thirst.paa";};
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\Wallet.paa";};
if(isNil "ExAd_SB_ICON_LOGO")then{ExAd_SB_ICON_LOGO = "ExAdClient\Core\Img\ExAd_logo_128.paa";};
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;};
@ -63,11 +64,13 @@ if(isNil "ExAd_SB_Dialog_CtrlBar_IDC")then{ExAd_SB_Dialog_CtrlBar_IDC = 1100;};
["STR_ExAd_SB_APP_SLIDER_POS_SIZE", "Position/Size"],
["STR_ExAd_SB_APP_COMBO_FONT", "Font"],
["STR_ExAd_SB_APP_COMBO_TOOLTIP_FONT", "Font"],
["STR_ExAd_SB_APP_COMBO_TOOLTIP_ALIGN", "Align"],
["STR_ExAd_SB_APP_SLIDER_TEXT_COLOR", "Text Color"],
["STR_ExAd_SB_APP_SLIDER_UPDATE_RATE", "Update Rate"],
["STR_ExAd_SB_APP_SLIDER_TEXT_SIZE", "Text Size"],
["STR_ExAd_SB_APP_SLIDER_TEXT_MARGIN", "Margin"],
["STR_ExAd_SB_APP_SLIDER_TEXT_PADDING", "Padding"],
["STR_ExAd_SB_APP_SLIDER_IMG_SIZE", "Image Size"],
["STR_ExAd_SB_APP_BTN_SHOW", "Show"],
["STR_ExAd_SB_APP_BTN_HIDE", "Hide"]
];
@ -84,6 +87,7 @@ ExAd_SB_Text_InnerMargin = profileNamespace getVariable ["ExAd_SB_Text_InnerMarg
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_Show_KD = profileNamespace getVariable ["ExAd_SB_Show_KD", false];
ExAd_SB_Show_HP = profileNamespace getVariable ["ExAd_SB_Show_HP", true];

View File

@ -150,20 +150,20 @@ _sliderH = [_display,_newParent,([_slideClass,"sliderH"] call ExAd_fnc_getNextID
[_sliderB,[0,1],ExAd_SB_GUI_BgColor select 2] call ExAd_fnc_prepareSlider;
[_sliderA,[0,1],ExAd_SB_GUI_BgColor select 3] call ExAd_fnc_prepareSlider;
_sliderR ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_BgColor set [0, _this select 1];call ExAd_fnc_updateSB"]];
_sliderG ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_BgColor set [1, _this select 1];call ExAd_fnc_updateSB"]];
_sliderB ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_BgColor set [2, _this select 1];call ExAd_fnc_updateSB"]];
_sliderA ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_BgColor set [3, _this select 1];call ExAd_fnc_updateSB"]];
_sliderR ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_BgColor set [0, _this select 1];call ExAd_fnc_updateSB"]];
_sliderG ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_BgColor set [1, _this select 1];call ExAd_fnc_updateSB"]];
_sliderB ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_BgColor set [2, _this select 1];call ExAd_fnc_updateSB"]];
_sliderA ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) * 100)) + '%1');ExAd_SB_GUI_BgColor set [3, _this select 1];call ExAd_fnc_updateSB","%"]];
[_sliderX,[safeZoneX,safeZoneX + safeZoneW],ExAd_SB_GUI_POS select 0] call ExAd_fnc_prepareSlider;
[_sliderY,[safeZoneY,safeZoneY + safeZoneH],ExAd_SB_GUI_POS select 1] call ExAd_fnc_prepareSlider;
[_sliderW,[0,safeZoneW],ExAd_SB_GUI_POS select 2] call ExAd_fnc_prepareSlider;
[_sliderH,[0,safeZoneH],ExAd_SB_GUI_POS select 3] call ExAd_fnc_prepareSlider;
_sliderX ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_POS set [0, _this select 1];call ExAd_fnc_updateSB"]];
_sliderY ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_POS set [1, _this select 1];call ExAd_fnc_updateSB"]];
_sliderW ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_POS set [2, _this select 1];call ExAd_fnc_updateSB"]];
_sliderH ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_POS set [3, _this select 1];call ExAd_fnc_updateSB"]];
_sliderX ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (_this select 1);ExAd_SB_GUI_POS set [0, _this select 1];call ExAd_fnc_updateSB","%"]];
_sliderY ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (_this select 1);ExAd_SB_GUI_POS set [1, _this select 1];call ExAd_fnc_updateSB","%"]];
_sliderW ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) / safeZoneW * 100)) + '%1');ExAd_SB_GUI_POS set [2, _this select 1];call ExAd_fnc_updateSB","%"]];
_sliderH ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) / safeZoneH * 100)) + '%1');ExAd_SB_GUI_POS set [3, _this select 1];call ExAd_fnc_updateSB","%"]];
//Text Font
_textCompTop = _bgCompTop + _rowH * 6;
@ -173,7 +173,6 @@ _comboFont = [_display,_newParent,([_slideClass,"comboFont"] call ExAd_fnc_getNe
private["_index"];
_index = _comboFont lbAdd _x;
_comboFont lbSetData [_index, _x]
}forEach ((configfile >> "CfgFontFamilies") call BIS_fnc_getCfgSubClasses);
for "_i" from 0 to lbSize _comboFont do {
@ -182,6 +181,19 @@ for "_i" from 0 to lbSize _comboFont do {
}
};
_comboAlign = [_display,_newParent,([_slideClass,"comboAlign"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 2, _cbStrW, _rowH * 0.75],"ExAd_SB_Text_Align = ((_this select 0) lbData (_this select 1))",STR_ExAd_SB_APP_COMBO_TOOLTIP_ALIGN] call ExAd_fnc_createCombo;
{
private["_index"];
_index = _comboAlign lbAdd _x;
_comboAlign lbSetData [_index, _x]
}forEach ["Left","Center","Right"];
for "_i" from 0 to lbSize _comboAlign do {
if((_comboAlign lbData _i) isEqualTo ExAd_SB_Text_Align)exitWith{
_comboAlign lbSetCurSel _i;
}
};
[_display,_newParent,([_slideClass,"strTxtTitleTextColor"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_TEXT_COLOR,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
[_display,_newParent,([_slideClass,"strTxtSliderFontR"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 1, _cbW, _cbH],"R",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText;
@ -196,12 +208,14 @@ _sliderFontB = [_display,_newParent,([_slideClass,"sliderFontB"] call ExAd_fnc_g
[_display,_newParent,([_slideClass,"strTxtSliderFontA"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 4, _cbW, _cbH],"A",_cbStrTextFont,_cbS6trTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderFontA = [_display,_newParent,([_slideClass,"sliderFontA"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 4 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
[_display,_newParent,([_slideClass,"strTxtTitleTextColor"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 5, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_UPDATE_RATE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
[_display,_newParent,([_slideClass,"strTxtTitleUpdateRate"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 5, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_UPDATE_RATE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderUpdateRate = [_display,_newParent,([_slideClass,"sliderUpdateRate"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 6 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
[_display,_newParent,([_slideClass,"strTxtTitleIconSize"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 7, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_IMG_SIZE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderIconSize = [_display,_newParent,([_slideClass,"sliderIconSize"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 8 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
[_display,_newParent,([_slideClass,"strTxtTitleTextSize"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 2, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_TEXT_SIZE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderTextSize = [_display,_newParent,([_slideClass,"sliderTextSize"] call ExAd_fnc_getNextIDC),[_rightCbStr, _textCompTop + _rowH * 3 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
[_display,_newParent,([_slideClass,"strTxtTitleTextSize"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 3, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_TEXT_SIZE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderTextSize = [_display,_newParent,([_slideClass,"sliderTextSize"] call ExAd_fnc_getNextIDC),[_rightCbStr, _textCompTop + _rowH * 4 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
[_display,_newParent,([_slideClass,"strTxtTitleTextSize"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 5, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_TEXT_MARGIN,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText;
_sliderTextMargin = [_display,_newParent,([_slideClass,"sliderTextMargin"] call ExAd_fnc_getNextIDC),[_rightCbStr, _textCompTop + _rowH * 6 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH;
@ -215,24 +229,26 @@ _sliderTextPadding = [_display,_newParent,([_slideClass,"sliderTextMargin"] call
[_sliderFontB,[0,1],ExAd_SB_GUI_TextColor select 2] call ExAd_fnc_prepareSlider;
[_sliderFontA,[0,1],ExAd_SB_GUI_TextColor select 3] call ExAd_fnc_prepareSlider;
_sliderFontR ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_TextColor set [0, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontG ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_TextColor set [1, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontB ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_TextColor set [2, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontA ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_GUI_TextColor set [3, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontR ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_TextColor set [0, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontG ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_TextColor set [1, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontB ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str (round ((_this select 1) * 255));ExAd_SB_GUI_TextColor set [2, _this select 1];call ExAd_fnc_updateSB"]];
_sliderFontA ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) * 100)) + '%1');ExAd_SB_GUI_TextColor set [3, _this select 1];call ExAd_fnc_updateSB", "%"]];
[_sliderTextSize,[0,2],ExAd_SB_Text_Size] call ExAd_fnc_prepareSlider;
[_sliderTextMargin,[0,5],count ExAd_SB_Text_Margin] call ExAd_fnc_prepareSlider;
[_sliderTextPadding,[0,5],count ExAd_SB_Text_InnerMargin] call ExAd_fnc_prepareSlider;
[_sliderUpdateRate,[1,60],60 / ExAd_SB_Update_Rate] call ExAd_fnc_prepareSlider;
[_sliderIconSize,[0,2], ExAd_SB_Img_Size] call ExAd_fnc_prepareSlider;
_sliderTextSize ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_Text_Size = _this select 1"]];
_sliderTextMargin ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_Text_Margin = [_this select 1] call ExAd_fnc_getBlankSpace"]];
_sliderTextPadding ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_Text_InnerMargin = [_this select 1] call ExAd_fnc_getBlankSpace"]];
_sliderUpdateRate ctrlSetEventHandler ["SliderPosChanged", format["ExAd_SB_Update_Rate = 60 / (_this select 1);if(ExAd_SB_Active)then{call ExAd_fnc_sbStop; call ExAd_fnc_loadSB;call ExAd_fnc_sbThread}"]];
_sliderTextSize ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) * 100)) + '%1');ExAd_SB_Text_Size = _this select 1", "%"]];
_sliderTextMargin ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str floor(_this select 1);ExAd_SB_Text_Margin = [_this select 1] call ExAd_fnc_getBlankSpace"]];
_sliderTextPadding ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip str floor(_this select 1);ExAd_SB_Text_InnerMargin = [_this select 1] call ExAd_fnc_getBlankSpace"]];
_sliderUpdateRate ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (_this select 1) + ' times/min');ExAd_SB_Update_Rate = 60 / (_this select 1);if(ExAd_SB_Active)then{call ExAd_fnc_sbStop; call ExAd_fnc_loadSB;call ExAd_fnc_sbThread}"]];
_sliderIconSize ctrlSetEventHandler ["SliderPosChanged", format["(_this select 0) ctrlSetTooltip (str (round ((_this select 1) * 100)) + '%1');ExAd_SB_Img_Size = _this select 1", "%"]];
[_display,_newParent,([_slideClass,"btnSave"] call ExAd_fnc_getNextIDC),[_leftCol + (_leftColW / 9), _textCompTop + _rowH * 8, _leftColW / 3, _rowH],"call ExAd_fnc_sbSave","Save"] call ExAd_fnc_createButton;
[_display,_newParent,([_slideClass,"btnOnOff"] call ExAd_fnc_getNextIDC),[_leftCol + (_leftColW / 2) + (_leftColW / 9), _textCompTop + _rowH * 8, _leftColW / 3, _rowH],"_this call ExAd_fnc_sbPowerToggle",(if(!ExAd_SB_Active)then{STR_ExAd_SB_APP_BTN_SHOW}else{STR_ExAd_SB_APP_BTN_HIDE})] call ExAd_fnc_createButton;
[_display,_newParent,([_slideClass,"btnSave"] call ExAd_fnc_getNextIDC),[_leftCol + (_leftColW / 9), _textCompTop + _rowH * 10, _leftColW / 3, _rowH],"call ExAd_fnc_sbSave","Save"] call ExAd_fnc_createButton;
[_display,_newParent,([_slideClass,"btnOnOff"] call ExAd_fnc_getNextIDC),[_leftCol + (_leftColW / 2) + (_leftColW / 9), _textCompTop + _rowH * 10, _leftColW / 3, _rowH],"_this call ExAd_fnc_sbPowerToggle",(if(!ExAd_SB_Active)then{STR_ExAd_SB_APP_BTN_SHOW}else{STR_ExAd_SB_APP_BTN_HIDE})] call ExAd_fnc_createButton;
true

View File

@ -179,6 +179,9 @@
<Key ID="STR_ExAd_SB_APP_COMBO_TOOLTIP_FONT">
<Original>Font</Original>
</Key>
<Key ID="STR_ExAd_SB_APP_COMBO_TOOLTIP_ALIGN">
<Original>Align</Original>
</Key>
<Key ID="STR_ExAd_SB_APP_SLIDER_TEXT_COLOR">
<Original>Text Color</Original>
</Key>
@ -194,6 +197,9 @@
<Key ID="STR_ExAd_SB_APP_SLIDER_TEXT_PADDING">
<Original>Padding</Original>
</Key>
<Key ID="STR_ExAd_SB_APP_SLIDER_IMG_SIZE">
<Original>Image Size</Original>
</Key>
<Key ID="STR_ExAd_SB_APP_BTN_SHOW">
<Original>Show</Original>
</Key>
@ -202,4 +208,4 @@
</Key>
</Container>
</Package>
</Project>
</Project>