diff --git a/CHANGELOG.md b/CHANGELOG.md index 46052ca..908efa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ #ExAd # Changelog: +## 160801 17:00 . v0.8.0 +### Fixed +* "ExadClient\CfgFunctions.cpp" to work with StatsBar (Core) +* "ExadClient\RscTitles.cpp" to work with StatsBar (Core) +* Go Back button didn't show text when VG wasn't loaded in the package (Apps; Info, Journal) +* Loading before ExileClientLoadedIn was declared + +### Added +* New plugin - StatsBar (StatsBar) +* New App to configure the StatsBar (XM8) +* New functions (XM8) +* Stringtable compability (StatsBar) + +### Removed +* removed all individual changelogs - took to much time to update. + ## 1607330 11:00 . v0.7.11 ### Fixed * Modified fn_addApps. (XM8) diff --git a/docs/Grinding/changelog.md b/docs/Grinding/changelog.md deleted file mode 100644 index aba45c3..0000000 --- a/docs/Grinding/changelog.md +++ /dev/null @@ -1,29 +0,0 @@ -#Grinding -## Changelog: - -### v0.7.7 -####Fixed -* Made the ExAd system compatible with Exile 0.9.8 - -### v0.7.6 -####Fixed -* The configuration file could be reed after the postInit script - IMPORTANT TO UPDATE ALL PLUGINS. - -###Added -* Extra loggin functionality -* Added a lot of new custom UI Display texts - Check stringtabl.xml for new ones. -* Progress bar height customizable - -### v0.7.3 -#### Fixed -* Declaration of un custamized variables - -### v0.6.1 -#### Fixed -* Sound error for grinding, tmp fix, sound will work on Chernarus - -### v0.6.0 -#### Added -* Grinding introduced -* Grinding battleye scripts - diff --git a/docs/Hacking/changelog.md b/docs/Hacking/changelog.md deleted file mode 100644 index f123671..0000000 --- a/docs/Hacking/changelog.md +++ /dev/null @@ -1,28 +0,0 @@ -#Hacking -## Changelog: - -### v0.7.7 -####Fixed -* Made the ExAd system compatible with Exile 0.9.8 - -### v0.7.6 -####Fixed -* The configuration file could be reed after the postInit script - IMPORTANT TO UPDATE ALL PLUGINS. - -###Added -* Extra loggin functionality -* Added a lot of new custom UI Display texts - Check stringtabl.xml for new ones. -* Added a feature so the server owner can decide if hacking should require a player with premissions to be online. - -### v0.7.3 -#### Fixed -* Cleaned the server code -* Declaration of un custamized variables - -### v0.7.1 -#### Fixed -* Removed dependency for VirtualGarage - -### v0.7.0 -#### Added -* Introduced **Hacking** to the ExAd package diff --git a/docs/HaloParachute/changelog.md b/docs/HaloParachute/changelog.md deleted file mode 100644 index 1749691..0000000 --- a/docs/HaloParachute/changelog.md +++ /dev/null @@ -1,40 +0,0 @@ -#HaloParachute -## Changelog: - -### v0.7.7 -####Fixed -* Made the ExAd system compatible with Exile 0.9.8 - -### v0.7.6 -####Fixed -* The configuration file could be reed after the postInit script - IMPORTANT TO UPDATE ALL PLUGINS. - -###Added -* Extra loggin functionality -* Added a lot of new custom UI Display texts - Check stringtabl.xml for new ones. - -## v0.7.5 -###Fixed -* Syntax error in postInit.sqf -* Remove parachute backpack when parachute is pulled. -* Removed one action when carrying parachute backpack -* Added battleye exceptions - -### v0.7.4 -#### Added -* Feature - Customization for using key bindings instead of displayed addActions - -#### Deleted -* "mpmission\Exile.Altis\ExAdClient\HaloParachute\Functions\canDetachParachute.sqf - -### v0.7.3 -#### Fixed -* Declaration of un custamized variables - -### v0.5.1 -#### Fixed -* Added BattlEye exceptions - -### v0.5.0 -#### Added -* Introduced **HaloParachute** to the ExAd package diff --git a/docs/StatsBar/examples.md b/docs/StatsBar/examples.md new file mode 100644 index 0000000..b5f1edf --- /dev/null +++ b/docs/StatsBar/examples.md @@ -0,0 +1 @@ +#Examples diff --git a/docs/StatsBar/installation.md b/docs/StatsBar/installation.md new file mode 100644 index 0000000..3fdee13 --- /dev/null +++ b/docs/StatsBar/installation.md @@ -0,0 +1,36 @@ +# Installation + +Remember for this plugin to work you first need to install +* [Core](https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) +* [XM8](https://github.com/Bjanski/ExAd/blob/master/docs/xm8/installation.md) + +## Client + +* Place the folder "StatsBar" into "mpmissions\exile.\ExAdClient\" + +* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment + +_From_ +```cpp + //#include "StatsBar\CfgFunctions.cpp" +``` +_To_ +```cpp + #include "StatsBar\CfgFunctions.cpp" +``` + +* In "config.cpp" in the mission root folder, add to the following class "CfgXM8" +```js +class CfgXM8 +{ + extraApps[] = {"ExAd_SB"}; + + class ExAd_SB + { + title = "Statsbar Settings"; + controlID = 50400; //IDC:50400 -> 50475 || These need to be unique and out of range from each other + logo = "exile_assets\texture\ui\xm8_app_settings_ca.paa"; + onLoad = "ExAdClient\XM8\Apps\SB_Settings\onLoad.sqf"; + }; +}; +``` diff --git a/docs/StatsBar/update.md b/docs/StatsBar/update.md new file mode 100644 index 0000000..d8793ee --- /dev/null +++ b/docs/StatsBar/update.md @@ -0,0 +1,5 @@ +#StatsBar +## Instructions: + +### 160801 . v0.8.0 +* Full installation diff --git a/docs/VirtualGarage/changelog.md b/docs/VirtualGarage/changelog.md deleted file mode 100644 index 7e540ab..0000000 --- a/docs/VirtualGarage/changelog.md +++ /dev/null @@ -1,47 +0,0 @@ -#VirtualGarage -## Changelog: - -### v0.7.7 -####Fixed -* Made the ExAd system compatible with Exile 0.9.8 - -####Added -* App for XM8 - -####Removed -* Support for Improved_XM8_Apps by Vitaly - -### v0.7.6 -####Fixed -* Quick-fix - VG App scroll for stored list -* The configuration file could be reed after the postInit script - IMPORTANT TO UPDATE ALL PLUGINS. - -####Added -* Extra loggin functionality -* Added a lot of new custom UI Display texts - Check stringtabl.xml for new ones. -* Added a more detailed description of the vehicle for the App -* Added the possibility to decide of which vehicles type should be storable - -### v0.7.3 -#### Fixed -* Declaration of un custamized variables - -### v0.7.0 -#### Fixed -* Small issue where VG didn't show an advancedHint when storing. -#### Added -* New stringtable values - -### v0.6.1 -#### Fixed -* Display null when entering Virtual Garage from Flag - -### v0.5.1 -#### Fixed -* BattlEye filters been updated -* VG App return to sideApp on unLoad -* VG App clear lists before onLoad and content being loaded. - -### v0.5.0 -#### Added -* Introduced **VirtualGarage** to the ExAd package diff --git a/docs/XM8/changelog.md b/docs/XM8/changelog.md deleted file mode 100644 index dae7805..0000000 --- a/docs/XM8/changelog.md +++ /dev/null @@ -1,21 +0,0 @@ -#VirtualGarage -## Changelog: - -## 160726 17:15 . v0.7.10 -### Fixed -* Apply custom functions to "More" app buttons. - -### Added -* New App, deploy vehicles - -## 160720 01:15 . v0.7.9 -### Fixed -* Some design flaws in the Apps functions. -* Added ExAd_Journal class to config.cpp - -### Added -* New App, which is a tutorial app on YouTube - -### v0.7.7 -#### Added -* Introduced **XM8** to the ExAd package diff --git a/docs/core/changelog.md b/docs/core/changelog.md deleted file mode 100644 index 2c72644..0000000 --- a/docs/core/changelog.md +++ /dev/null @@ -1,41 +0,0 @@ -#Core -## Changelog: - -## v0.7.7 -###Fixed -* Made the ExAd system compatible with Exile 0.9.8 - -### v0.7.6 -####Fixed -* The configuration file could be reed after the postInit script - IMPORTANT TO UPDATE ALL PLUGINS. - -####Added -* Extra loggin functionality -* Changeable variables for logging functionality -* Added function ExAd_fnc_territoryPlayerPresent, to see if a player with permissions for a specific flag is online - -### v0.7.3 -#### Fixed -* Declaration of un custamized variables - -### v0.7.0 -#### Added -* New customizable values (Core) - -### v0.5.2 -#### Fixed -* Description.ext was wrongly configured - -### v0.5.1 -#### Fixed -* AdvHint trying to show EXO Logo - -#### Added -* ExAd Logo.png - -#### Deleted -* EXO Logo.png - -### v0.5.0 -#### Added -* Introduced **Core** to the ExAd package \ No newline at end of file diff --git a/logo.png b/logo.png index 360bdf2..3a24efd 100644 Binary files a/logo.png and b/logo.png differ diff --git a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp index 6539250..2e4edaf 100644 --- a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp @@ -27,4 +27,5 @@ class ExAd //#include "Grinding\CfgFunctions.cpp" //#include "HaloParachute\CfgFunctions.cpp" //#include "XM8\CfgFunctions.cpp" + //#include "StatsBar\CfgFunctions.cpp" }; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_128.paa b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_128.paa new file mode 100644 index 0000000..02940cd Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_128.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_256.paa b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_256.paa new file mode 100644 index 0000000..0f24a60 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_256.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_512.paa b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_512.paa new file mode 100644 index 0000000..82e1ae0 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_512.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_64.paa b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_64.paa new file mode 100644 index 0000000..9634d6c Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/Core/Img/exad_logo_64.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/RscTitles.cpp b/mpmissions/Exile.Altis/ExAdClient/RscTitles.cpp index 6016670..babe2a6 100644 --- a/mpmissions/Exile.Altis/ExAdClient/RscTitles.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/RscTitles.cpp @@ -17,4 +17,4 @@ */ -//#include "HUD\RscTitles.cpp" \ No newline at end of file +//#include "StatsBar\RscTitles.cpp" \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/StatsBar/CfgFunctions.cpp new file mode 100644 index 0000000..2b13ed8 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/CfgFunctions.cpp @@ -0,0 +1,49 @@ +/* + CfgFunctions.cpp + + 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. +*/ + + +class StatsBar +{ + file = "ExAdClient\StatsBar\Functions"; + class formatNbrToPrefixStr {}; + class formatSBImage {}; + class formatSBOutput {}; + class getBankStr {}; + class getClanStr {}; + class getCompassStr {}; + class getFPSStr {}; + class getGridStr {}; + class getHPStr {}; + class getHungerStr {}; + class getKDStr {}; + class getPlayersStr {}; + class getRespectStr {}; + class getTempStr {}; + class getThirstStr {}; + class getTimerStr {}; + class getSBColor {}; + class getWalletStr {}; + class loadSB {}; + class sbPowerToggle {}; + class sbSave {}; + class sbStop {}; + class sbThread {}; + class toggleExileHUD {}; + class updateSB {}; + class postInitSB {file = "ExAdClient\StatsBar\postInit.sqf"; postInit = 1;}; +}; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/CustomCode/ExileServer_system_territory_database_load.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/CustomCode/ExileServer_system_territory_database_load.sqf new file mode 100644 index 0000000..5fe53ba --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/CustomCode/ExileServer_system_territory_database_load.sqf @@ -0,0 +1,61 @@ +/** + * ExileServer_system_territory_database_load + * + * Exile Mod + * www.exilemod.com + * © 2015 Exile Mod Team + * + * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. + * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. + */ + +private["_territoryID","_data","_id","_owner","_position","_radius","_level","_flagTexture","_flagStolen","_flagStolenBy","_lastPayed","_buildRights","_moderators","_flagObject"]; +_territoryID = _this; +_data = format ["loadTerritory:%1", _territoryID] call ExileServer_system_database_query_selectSingle; +_id = _data select 0; +_owner = _data select 1; +_name = _data select 2; +_position = +[ + _data select 3, + _data select 4, + _data select 5 +]; +_radius = _data select 6; +_level = _data select 7; +_flagTexture = _data select 8; +_flagStolen = _data select 9; +_flagStolenBy = _data select 10; +_lastPayed = _data select 11; +_buildRights = _data select 12; +_moderators = _data select 13; +_flagObject = createVehicle ["Exile_Construction_Flag_Static",_position, [], 0, "CAN_COLLIDE"]; +if (_flagStolen isEqualTo 0) then +{ + _flagObject setFlagTexture _flagTexture; +}; +ExileLocations pushBack _flagObject; +_flagObject setVariable ["ExileTerritoryName", _name, true]; +_flagObject setVariable ["ExileDatabaseID", _id]; +_flagObject setVariable ["ExileOwnerUID", _owner, true]; +_flagObject setVariable ["ExileTerritorySize", _radius, true]; +_flagObject setVariable ["ExileTerritoryBuildRights", _buildRights, true]; +_flagObject setVariable ["ExileTerritoryModerators", _moderators, true]; +_flagObject setVariable ["ExileTerritoryLevel", _level, true]; +_flagObject setVariable ["ExileTerritoryLastPayed", _lastPayed]; +_flagObject call ExileServer_system_territory_maintenance_recalculateDueDate; +_flagObject setVariable ["ExileTerritoryNumberOfConstructions", _data select 15, true]; +_flagObject setVariable ["ExileRadiusShown", false, true]; +_flagObject setVariable ["ExileFlagStolen",_flagStolen,true]; +_flagObject setVariable ["ExileFlagTexture",_flagTexture]; + +//////////////////////// +///// ExAd START ///// +//////////////////////// +_vehicles = format ["loadTerritoryVehicles:%1", _territoryID] call ExileServer_system_database_query_selectFull; +_flagObject setVariable ["ExAdVGVeh", _vehicles, true]; +//////////////////////// +///// ExAd END ///// +//////////////////////// + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf new file mode 100644 index 0000000..36801b3 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatNbrToPrefixStr.sqf @@ -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] \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBImage.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBImage.sqf new file mode 100644 index 0000000..59f79f3 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBImage.sqf @@ -0,0 +1,21 @@ +/* + fn_formatSBImage.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 [["_src","",[""]],["_size",ExAd_SB_Img_Size,[0]]]; + +format["", _src,_size] \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBOutput.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBOutput.sqf new file mode 100644 index 0000000..ec5477a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_formatSBOutput.sqf @@ -0,0 +1,26 @@ +/* + fn_formatSBOutput.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 [["_elements", [], [[]]], ["_color","",[""]], ["_text",""]]; + +{ + _text = format["%1%3%2", _text, _x, ExAd_SB_Text_InnerMargin]; +}forEach _elements; + +_color = if(count _color > 0)then{format["color='%1'",_color]}else{_color}; +format["%1%2%1", ExAd_SB_Text_Margin , _text , _color ] \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getBankStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getBankStr.sqf new file mode 100644 index 0000000..3687ce8 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getBankStr.sqf @@ -0,0 +1,24 @@ +/* + fn_getBankStr.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. + +*/ +private["_img","_text"]; + +_img = [ExAd_SB_ICON_BANK] call ExAd_fnc_formatSBImage; +_text = [player getVariable ["ExileLocker", 0]] 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_getClanStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getClanStr.sqf new file mode 100644 index 0000000..071a196 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getClanStr.sqf @@ -0,0 +1,24 @@ +/* + fn_getClanStr.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. + +*/ +private["_img","_text"]; + +_img = [ExAd_SB_ICON_CLAN] call ExAd_fnc_formatSBImage; +_text = "N/A"; + +[[_img, _text]] call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getCompassStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getCompassStr.sqf new file mode 100644 index 0000000..167e62e --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getCompassStr.sqf @@ -0,0 +1,40 @@ +/* + fn_getCompassStr.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. + +*/ +private["_img","_dir"]; + +_img = [ExAd_SB_ICON_COMPASS] call ExAd_fnc_formatSBImage; +_dir = direction player; + +try +{ + if(_dir >= 337.5 || _dir < 22.5 )then{throw "N"}; + if(_dir >= 22.5 && _dir < 67.5 )then{throw "NE"}; + if(_dir >= 67.5 && _dir < 112.5 )then{throw "E"}; + if(_dir >= 112.5 && _dir < 157.5 )then{throw "SE"}; + if(_dir >= 157.5 && _dir < 202.5 )then{throw "S"}; + if(_dir >= 202.5 && _dir < 247.5 )then{throw "SW"}; + if(_dir >= 247.5 && _dir < 292.5 )then{throw "W"}; + if(_dir >= 292.5 && _dir < 337.5 )then{throw "NW"}; + + throw "N/A" +} +catch +{ + [[_img, _exception, round _dir]] call ExAd_fnc_formatSBOutput +} \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getFPSStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getFPSStr.sqf new file mode 100644 index 0000000..200c20c --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getFPSStr.sqf @@ -0,0 +1,31 @@ +/* + fn_getFPSStr.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. + +*/ +private["_request","_img","_text"]; + +_request = []; + +_img = format["FPS", ExAd_SB_Img_Size]; +_text = floor diag_fps; +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,40,_text] call ExAd_fnc_getSBColor) +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getGridStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getGridStr.sqf new file mode 100644 index 0000000..7bad797 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getGridStr.sqf @@ -0,0 +1,26 @@ +/* + fn_getGridStr.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. + +*/ +private["_img","_grid","_text"]; + +_grid = mapGridPosition player; + +_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 \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHPStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHPStr.sqf new file mode 100644 index 0000000..31b768a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHPStr.sqf @@ -0,0 +1,31 @@ +/* + fn_getHPStr.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. + +*/ +private["_request","_img","_text"]; + +_request = []; + +_img = [ExAd_SB_ICON_HP] call ExAd_fnc_formatSBImage; +_text = round (ExileClientPlayerAttributes select 0); +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,100,_text] call ExAd_fnc_getSBColor) +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHungerStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHungerStr.sqf new file mode 100644 index 0000000..c0791cb --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getHungerStr.sqf @@ -0,0 +1,31 @@ +/* + fn_getHungerStr.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. + +*/ +private["_request","_img","_text"]; + +_request = []; + +_img = [ExAd_SB_ICON_HUNGER] call ExAd_fnc_formatSBImage; +_text = round (ExileClientPlayerAttributes select 2); +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,100,_text] call ExAd_fnc_getSBColor) +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getKDStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getKDStr.sqf new file mode 100644 index 0000000..cb8767a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getKDStr.sqf @@ -0,0 +1,34 @@ +/* + fn_getClanStr.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. + +*/ +private["_request","_death","_img","_text"]; + +_request = []; + +_death = if(ExileClientPlayerDeaths == 0)then{0.001}else{ExileClientPlayerDeaths}; + +_img = [ExAd_SB_ICON_KD] call ExAd_fnc_formatSBImage; +_text = [ExileClientPlayerKills / _death, 2] call ExileClient_util_math_round; + +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,2,_text] call ExAd_fnc_getSBColor) +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getPlayersStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getPlayersStr.sqf new file mode 100644 index 0000000..2b55c65 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getPlayersStr.sqf @@ -0,0 +1,24 @@ +/* + fn_getPlayersStr.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. + +*/ +private["_img","_text"]; + +_img = [ExAd_SB_ICON_PLAYERS] call ExAd_fnc_formatSBImage; +_text = count playableUnits; + +[[_img, _text]] call ExAd_fnc_formatSBOutput \ 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 new file mode 100644 index 0000000..2d9a18a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getRespectStr.sqf @@ -0,0 +1,24 @@ +/* + fn_getRespectStr.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. + +*/ +private["_img","_text"]; + +_img = [ExAd_SB_ICON_RESPECT] call ExAd_fnc_formatSBImage; +_text = ExileClientPlayerScore; + +[[_img, _text]] call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getSBColor.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getSBColor.sqf new file mode 100644 index 0000000..8d07df2 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getSBColor.sqf @@ -0,0 +1,44 @@ +/* + fn_getSBColor.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[["_min",0,[0]],["_max",1,[0]],["_cur",1,[0]],"_count","_diff","_color",""]; + +try +{ + if(isNil "ExAd_SB_COMPONENTS_COLORS")then{throw ""}; + + _count = count ExAd_SB_COMPONENTS_COLORS; + if(_count == 0)then{throw ""}; + + if(_cur > _max)then{_max = _cur}; + _diff = (_max - _min) / _count; + _color = ExAd_SB_COMPONENTS_COLORS select 0; + + for "_i" from 0 to _count do { + if(_cur >= (_i * _diff) && _cur <= ((_i + 1) * _diff))then{throw (ExAd_SB_COMPONENTS_COLORS select _i);} + }; + + throw _color; +} +catch +{ + if(count _exception == 0)then{ + ExAd_SB_COMPONENTS_ACTIVE_COLORS = false; + }; + _exception +} \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTempStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTempStr.sqf new file mode 100644 index 0000000..8ef7991 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTempStr.sqf @@ -0,0 +1,33 @@ +/* + fn_getTempStr.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. + +*/ +private["_request","_img","_text"]; + +_request = []; + +_img = [ExAd_SB_ICON_TEMP] call ExAd_fnc_formatSBImage; +_temp = [ExileClientPlayerAttributes select 5, 1] call ExileClient_util_math_round; +_text = _temp; + +_request pushBack [_img,_text, "°C"]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,37,_text] call ExAd_fnc_getSBColor) +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getThirstStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getThirstStr.sqf new file mode 100644 index 0000000..e8e3551 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getThirstStr.sqf @@ -0,0 +1,31 @@ +/* + fn_getThirstStr.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. + +*/ +private["_request","_img","_text"]; + +_request = []; + +_img = [ExAd_SB_ICON_THIRST] call ExAd_fnc_formatSBImage; +_text = round (ExileClientPlayerAttributes select 3); +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + _request pushBack ([0,100,_text] call ExAd_fnc_getSBColor) +}; + +_request 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 new file mode 100644 index 0000000..ddfe30d --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getTimerStr.sqf @@ -0,0 +1,39 @@ +/* + fn_getTimerStr.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. + +*/ +private["_request","_time","_hours","_minutes","_img","_text"]; + +_request = []; + +_time = serverTime; +_hours = 2 - floor (_time / 3600); +_minutes = 59 - floor ((_time % 3600) / 60); + +_img = [ExAd_SB_ICON_TIMER] call ExAd_fnc_formatSBImage; +_text = format["%1:%2", _hours,_minutes]; +_request pushBack [_img,_text]; + +if(ExAd_SB_COMPONENTS_ACTIVE_COLORS)then{ + if(_hours > 0)then{ + _request pushBack ([0,1,_hours] call ExAd_fnc_getSBColor) + }else{ + _request pushBack ([0,60,_minutes] call ExAd_fnc_getSBColor) + }; +}; + +_request call ExAd_fnc_formatSBOutput \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getWalletStr.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getWalletStr.sqf new file mode 100644 index 0000000..60ea867 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_getWalletStr.sqf @@ -0,0 +1,24 @@ +/* + fn_getWalletStr.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. + +*/ +private["_img","_text"]; + +_img = [ExAd_SB_ICON_Wallet] call ExAd_fnc_formatSBImage; +_text = [player getVariable ["ExileMoney", 0]] 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_loadSB.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_loadSB.sqf new file mode 100644 index 0000000..602dd46 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_loadSB.sqf @@ -0,0 +1,36 @@ +/* + fn_loadSB.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. + +*/ +private["_display"]; + +disableSerialization; + +ExAd_SB_Dialog_Layer cutRsc ["ExAd_STATSBAR", "PLAIN", 1]; + +_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull]; +_logoCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlLogo_IDC; + +if(count ExAd_SB_ICON_LOGO > 0)then{ + _logoCtrl ctrlSetText ExAd_SB_ICON_LOGO; +}; + +call ExAd_fnc_updateSB; + +ExAd_SB_Thread = [ExAd_SB_Update_Rate, ExAd_fnc_sbThread, [], true] call ExileClient_system_thread_addtask; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbPowerToggle.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbPowerToggle.sqf new file mode 100644 index 0000000..672bbac --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbPowerToggle.sqf @@ -0,0 +1,31 @@ +/* + fn_sbPowerToggle.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. + +*/ + +if(ExAd_SB_Active)then{ + call ExAd_fnc_sbStop +}else{ + call ExAd_fnc_loadSB +}; + +ExAd_SB_Active = !ExAd_SB_Active; + +(_this select 0) ctrlSetText (if(!ExAd_SB_Active)then{STR_ExAd_SB_APP_BTN_SHOW}else{STR_ExAd_SB_APP_BTN_HIDE}); +call ExAd_SB_fnc_thread; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbSave.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbSave.sqf new file mode 100644 index 0000000..e6616b0 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbSave.sqf @@ -0,0 +1,51 @@ +/* + fn_sbSave.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. + +*/ +profileNamespace setVariable ["ExAd_SB_Update_Rate", ExAd_SB_Update_Rate]; +profileNamespace setVariable ["ExAd_SB_Active", ExAd_SB_Active]; + +profileNamespace setVariable ["ExAd_SB_GUI_POS", ExAd_SB_GUI_POS]; +profileNamespace setVariable ["ExAd_SB_GUI_TextColor", ExAd_SB_GUI_TextColor]; +profileNamespace setVariable ["ExAd_SB_GUI_BgColor", ExAd_SB_GUI_BgColor]; + +profileNamespace setVariable ["ExAd_SB_Text_Margin", ExAd_SB_Text_Margin]; +profileNamespace setVariable ["ExAd_SB_Text_InnerMargin", ExAd_SB_Text_InnerMargin]; +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]; +profileNamespace setVariable ["ExAd_SB_Show_Thirst", ExAd_SB_Show_Thirst]; +profileNamespace setVariable ["ExAd_SB_Show_Hunger", ExAd_SB_Show_Hunger]; +profileNamespace setVariable ["ExAd_SB_Show_Wallet", ExAd_SB_Show_Wallet]; +profileNamespace setVariable ["ExAd_SB_Show_Bank", ExAd_SB_Show_Bank]; +profileNamespace setVariable ["ExAd_SB_Show_Respect", ExAd_SB_Show_Respect]; +profileNamespace setVariable ["ExAd_SB_Show_FPS", ExAd_SB_Show_FPS]; +profileNamespace setVariable ["ExAd_SB_Show_Time", ExAd_SB_Show_Time]; +profileNamespace setVariable ["ExAd_SB_Show_Temp", ExAd_SB_Show_Temp]; +profileNamespace setVariable ["ExAd_SB_Show_Grid", ExAd_SB_Show_Grid]; +profileNamespace setVariable ["ExAd_SB_Show_Compass", ExAd_SB_Show_Compass]; +profileNamespace setVariable ["ExAd_SB_Show_PlayerCount", ExAd_SB_Show_PlayerCount]; +profileNamespace setVariable ["ExAd_SB_Show_ClanCount", ExAd_SB_Show_ClanCount]; + +profileNamespace setVariable ["ExAd_SB_COMPONENTS_ACTIVE_COLORS", ExAd_SB_COMPONENTS_ACTIVE_COLORS]; +profileNamespace setVariable ["ExAd_SB_EXILE_HUD_ACTIVE", ExAd_SB_EXILE_HUD_ACTIVE]; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbStop.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbStop.sqf new file mode 100644 index 0000000..8cd6b25 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbStop.sqf @@ -0,0 +1,23 @@ +/* + fn_sbStop.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. + +*/ + +ExAd_SB_Dialog_Layer cutText ["", "PLAIN"]; +[ExAd_SB_Thread] call ExileClient_system_thread_removeTask; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf new file mode 100644 index 0000000..37d9885 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_sbThread.sqf @@ -0,0 +1,50 @@ +/* + fn_sbThread.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. + +*/ +private["_display","_statsBarCtrl","_text"]; + +disableSerialization; + +_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull]; +_statsBarCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlBar_IDC; + +_text = format[ + "%4%5%6%7%8%9%10%11%12%13%14%15%16%17%18%4", + ExAd_SB_Text_Font, + 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{""}) +]; + +_statsBarCtrl ctrlSetStructuredText parseText _text; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_toggleExileHUD.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_toggleExileHUD.sqf new file mode 100644 index 0000000..69d1eb4 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_toggleExileHUD.sqf @@ -0,0 +1,51 @@ +/* + fn_sbThread.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. + +*/ +private["_display","_exileCtrl","_text"]; + +disableSerialization; + +_display = uiNameSpace getVariable ["RscExileHUD",displayNull]; +_exileCtrl = _display displayCtrl 1300; + +_exileCtrl ctrlShow ExAd_SB_EXILE_HUD_ACTIVE; + +if(ExAd_SB_EXILE_HUD_ACTIVE)then{ + _hungerLabel = _display displayCtrl 1303; + _hungerLabel ctrlShow (ExileHudMode isEqualTo 0); + _hungerValue = _display displayCtrl 1302; + _hungerValue ctrlShow (ExileHudMode isEqualTo 0); + _thirstLabel = _display displayCtrl 1305; + _thirstLabel ctrlShow (ExileHudMode isEqualTo 0); + _thirstValue = _display displayCtrl 1304; + _thirstValue ctrlShow (ExileHudMode isEqualTo 0); + _healthLabel = _display displayCtrl 1307; + _healthLabel ctrlShow (ExileHudMode isEqualTo 1); + _healthValue = _display displayCtrl 1306; + _healthValue ctrlShow (ExileHudMode isEqualTo 1); + _environmentTemperatureLabel = _display displayCtrl 1309; + _environmentTemperatureLabel ctrlShow (ExileHudMode isEqualTo 2); + _environmentTemperatureValue = _display displayCtrl 1308; + _environmentTemperatureValue ctrlShow (ExileHudMode isEqualTo 2); + _bodyTemperatureLabel = _display displayCtrl 1311; + _bodyTemperatureLabel ctrlShow (ExileHudMode isEqualTo 2); + _bodyTemperatureValue = _display displayCtrl 1310; + _bodyTemperatureValue ctrlShow (ExileHudMode isEqualTo 2); +}; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_updateSB.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_updateSB.sqf new file mode 100644 index 0000000..932d2fa --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Functions/fn_updateSB.sqf @@ -0,0 +1,28 @@ +/* + fn_sbThread.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. + +*/ +private ["_display","_statsBarCtrl"]; +_display = uiNameSpace getVariable ["ExAd_STATSBAR",displayNull]; +_statsBarCtrl = _display displayCtrl ExAd_SB_Dialog_CtrlBar_IDC; + +_statsBarCtrl ctrlSetPosition ExAd_SB_GUI_POS; +_statsBarCtrl ctrlSetBackgroundColor ExAd_SB_GUI_BgColor; +_statsBarCtrl ctrlSetTextColor ExAd_SB_GUI_TextColor; +_statsBarCtrl ctrlCommit 0; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Bank.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Bank.paa new file mode 100644 index 0000000..62b37b4 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Bank.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Compass.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Compass.paa new file mode 100644 index 0000000..e19bc1a Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Compass.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Family.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Family.paa new file mode 100644 index 0000000..8e8fc6a Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Family.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Grid.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Grid.paa new file mode 100644 index 0000000..c92212f Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Grid.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Health.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Health.paa new file mode 100644 index 0000000..e1a144b Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Health.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Hunger.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Hunger.paa new file mode 100644 index 0000000..466dea5 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Hunger.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_KD.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_KD.paa new file mode 100644 index 0000000..c28d9e1 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_KD.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Players.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Players.paa new file mode 100644 index 0000000..a128ddd Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Players.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Respect.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Respect.paa new file mode 100644 index 0000000..37aa0cd Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Respect.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Restart.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Restart.paa new file mode 100644 index 0000000..c7f636c Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Restart.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Temp.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Temp.paa new file mode 100644 index 0000000..184e02c Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Temp.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Thirst.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Thirst.paa new file mode 100644 index 0000000..2656c8a Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Thirst.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Wallet.paa b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Wallet.paa new file mode 100644 index 0000000..acd7511 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/StatsBar/Icons/ExAd_Wallet.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/RscTitles.cpp b/mpmissions/Exile.Altis/ExAdClient/StatsBar/RscTitles.cpp new file mode 100644 index 0000000..7664416 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/RscTitles.cpp @@ -0,0 +1,41 @@ +#include "base.cpp" + +class ExAd_STATSBAR +{ + idd = 2186; + movingEnable = 0; + enableSimulation = 1; + enableDisplay = 1; + duration = 10e10; + fadein = 0; + fadeout = 0; + name = "ExAd_STATSBAR"; + onLoad = "with uiNameSpace do { ExAd_STATSBAR = _this select 0 };"; + class controls + { + class StatsBar: RscStructuredText + { + idc = 1100; + text = ""; + x = "safeZoneX"; + y = "safeZoneY + safeZoneH - 32 * pixelH"; + w = "safeZoneW"; + h = "30 * pixelH"; + }; + class Logo + { + type= 0; + idc = 1000; + x = "safeZoneX + 60 * pixelW"; + y = "safeZoneY + 60 * pixelH - 32 * pixelH"; + w = "64 * pixelW"; + h = "64 * pixelH"; + style=48; + colorBackground[]={0,0,0,0}; + colorText[]={1,1,1,0.4}; + font="TahomaB"; + sizeEx=0; + text = ""; + }; + }; +}; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/base.cpp b/mpmissions/Exile.Altis/ExAdClient/StatsBar/base.cpp new file mode 100644 index 0000000..2abc6f8 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/base.cpp @@ -0,0 +1,23 @@ +class RscStructuredText +{ + deletable = 0; + fade = 0; + access = 0; + type = 13; + idc = -1; + style = 0; + colorText[] = {1,1,1,1}; + colorBackground[] = {0,0,0,0}; + class Attributes + { + font = "PuristaMedium"; + color = "#ffffff"; + colorLink = "#D09B43"; + align = "left"; + shadow = 0; + }; + x = 0; y = 0; h = 0.035; w = 0.1; + text = ""; + size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; + shadow = 1; +}; diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf new file mode 100644 index 0000000..f05c3cf --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/customize.sqf @@ -0,0 +1,34 @@ +/* + customize.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. +*/ + +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\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 diff --git a/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf new file mode 100644 index 0000000..86d756f --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/StatsBar/postInit.sqf @@ -0,0 +1,122 @@ +/* + postInit.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. + +*/ + +_path = "ExAdClient\StatsBar\customize.sqf"; +call compile preprocessFileLineNumbers _path; + +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\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_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;}; +if(isNil "ExAd_SB_Dialog_CtrlBar_IDC")then{ExAd_SB_Dialog_CtrlBar_IDC = 1100;}; + +{ + _x call ExAd_fnc_localize; +}forEach [ + ["STR_ExAd_SB_APP_GO_BACK", "Go Back"], + ["STR_ExAd_SB_APP_CB_KD", "Kill/Death Ratio"], + ["STR_ExAd_SB_APP_CB_HP", "Health"], + ["STR_ExAd_SB_APP_CB_THIRST", "Thirst"], + ["STR_ExAd_SB_APP_CB_HUNGER", "Hunger"], + ["STR_ExAd_SB_APP_CB_WALLET", "POP TABS in wallet"], + ["STR_ExAd_SB_APP_CB_BANK", "POP TABS in bank"], + ["STR_ExAd_SB_APP_CB_RESPECT", "Respect"], + ["STR_ExAd_SB_APP_CB_COLORS", "Use color indications"], + ["STR_ExAd_SB_APP_CB_FPS", "FPS"], + ["STR_ExAd_SB_APP_CB_TIMER", "Restart time"], + ["STR_ExAd_SB_APP_CB_TEMP", "Body Temperature"], + ["STR_ExAd_SB_APP_CB_GRID", "Grid location"], + ["STR_ExAd_SB_APP_CB_COMPASS", "Compass"], + ["STR_ExAd_SB_APP_CB_PLAYERS", "Players online"], + ["STR_ExAd_SB_APP_CB_CLAN_MEMBERS", "Family members online"], + ["STR_ExAd_SB_APP_CB_HIDE_EXILE_SB", "Hide Exile Status bar"], + ["STR_ExAd_SB_APP_SLIDER_BG_COLOR", "Background Color"], + ["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"] +]; + +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_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_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_COMPONENTS_ACTIVE_COLORS = profileNamespace getVariable ["ExAd_SB_COMPONENTS_ACTIVE_COLORS", true]; +ExAd_SB_EXILE_HUD_ACTIVE = profileNamespace getVariable ["ExAd_SB_EXILE_HUD_ACTIVE", true]; + +if(!ExAd_SB_Active)exitWith{false}; + +[] spawn { + waituntil { !isnil "bis_fnc_init" && !isNull findDisplay 46 && alive player && !isNil "ExileClientLoadedIn" }; + waitUntil { ExileClientLoadedIn }; + + call ExAd_fnc_loadSB; + + if(!ExAd_SB_EXILE_HUD_ACTIVE)then{ + call ExAd_fnc_toggleExileHUD; + }; + +}; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/onLoad.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/onLoad.sqf index eab536b..48b9b9f 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/onLoad.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/onLoad.sqf @@ -27,7 +27,7 @@ _margin = 0.2; _slideClass = "ExAd_Info"; -[_display,_slide,([_slideClass,"backButton"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',STR_ExAd_VG_APP_BTN_BACK] call ExAd_fnc_createButton; +[_display,_slide,([_slideClass,"backButton"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',"Go Back"] call ExAd_fnc_createButton; _newParent = [_display,_slide,([_slideClass,"ctrlGrp"] call ExAd_fnc_getNextIDC),[_leftCol * _pW, 1 * _pH, (_leftColW + _rightCol + 6) * _pW, 16 * _pH]] call ExAd_fnc_createCtrlGrp; [_display,_newParent,([_slideClass,"strTxt"] call ExAd_fnc_getNextIDC),[_leftCol * _pW, 1.5 * _pH, (_leftColW + _rightCol + 5) * _pW, 15 * _pH],"","PuristaMedium",1,"#ffffff","right",1] call ExAd_fnc_createStructuredText; diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Journal/onLoad.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Journal/onLoad.sqf index fcf26d2..e06ee4e 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Journal/onLoad.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Journal/onLoad.sqf @@ -29,7 +29,7 @@ _slideClass = "ExAd_Journal"; [_display,_slide,([_slideClass,"picBg"] call ExAd_fnc_getNextIDC),[1 * _pW, -1 * _pH, (_leftColW + _rightCol + 5) * _pW, 21 * _pH],"ExAdClient\XM8\Apps\Journal\ExAd_Scroll.paa",[1,1,1,1],false,false,""] call ExAd_fnc_createPicture; -[_display,_slide,([_slideClass,"btnBack"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',STR_ExAd_VG_APP_BTN_BACK] call ExAd_fnc_createButton; +[_display,_slide,([_slideClass,"btnBack"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',"Go Back"] call ExAd_fnc_createButton; _newParent = [_display,_slide,([_slideClass,"ctrlGrp"] call ExAd_fnc_getNextIDC),[6.5 * _pW, 3 * _pH, 21 * _pW, 13 * _pH]] call ExAd_fnc_createCtrlGrp; _listCtrl = [_display,_newParent,([_slideClass,"listNotes"] call ExAd_fnc_getNextIDC),[0 * _pW, 0 * _pH, 21 * _pW, 13 * _pH],""] call ExAd_fnc_createList; diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/Icon_SB.paa b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/Icon_SB.paa new file mode 100644 index 0000000..1aa7949 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/Icon_SB.paa differ diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf new file mode 100644 index 0000000..d2a0689 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/SB_Settings/onLoad.sqf @@ -0,0 +1,254 @@ +/* + onLoad.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["_display","_slide","_idc"]; + +_pW = 0.025; +_pH = 0.04; + +_rowH = 1.3 * _pH; +_leftCol = 0 * _pW; +_leftColW = 17 * _pW; + +_cbCompTop = 1 * _pH; +_cbW = 1.25 * _pW; +_cbH = _rowH * 0.8; + +_cbStr = _leftCol + _cbW; +_cbStrW = _leftColW - _cbW; + +_rightCol = _leftCol + _leftColW; +_rightCbStr = _rightCol + _cbW; + +_slideClass = "ExAd_SB"; + +[_display,_slide,([_slideClass,"backButton"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',STR_ExAd_SB_APP_GO_BACK] call ExAd_fnc_createButton; + + +_newParent = [_display,_slide,([_slideClass,"ctrlGrp"] call ExAd_fnc_getNextIDC),[0, _cbCompTop, 34 * _pW, 16 * _pH]] call ExAd_fnc_createCtrlGrp; +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + +_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; + + +//Setup sliders +_cbW = _cbW + 0.5 * _pW; _scale = 0.5; _margin = (_rowH * _scale / 2); _bgCompTop = _cbCompTop + _rowH * 9; +[_display,_newParent,([_slideClass,"strTxtTitleBgColor"] call ExAd_fnc_getNextIDC),[_leftCol, _bgCompTop, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_BG_COLOR,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText; + +[_display,_newParent,([_slideClass,"strTxtSliderR"] call ExAd_fnc_getNextIDC),[_leftCol, _bgCompTop + _rowH * 1, _cbW, _cbH],"R",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderR = [_display,_newParent,([_slideClass,"sliderR"] call ExAd_fnc_getNextIDC),[_cbStr, _bgCompTop + _rowH * 1 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderG"] call ExAd_fnc_getNextIDC),[_leftCol, _bgCompTop + _rowH * 2, _cbW, _cbH],"G",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderG = [_display,_newParent,([_slideClass,"sliderG"] call ExAd_fnc_getNextIDC),[_cbStr, _bgCompTop + _rowH * 2 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderB"] call ExAd_fnc_getNextIDC),[_leftCol, _bgCompTop + _rowH * 3, _cbW, _cbH],"B",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderB = [_display,_newParent,([_slideClass,"sliderB"] call ExAd_fnc_getNextIDC),[_cbStr, _bgCompTop + _rowH * 3 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderA"] call ExAd_fnc_getNextIDC),[_leftCol, _bgCompTop + _rowH * 4, _cbW, _cbH],"A",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderA = [_display,_newParent,([_slideClass,"sliderA"] call ExAd_fnc_getNextIDC),[_cbStr, _bgCompTop + _rowH * 4 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + + +[_display,_newParent,([_slideClass,"strTxtTitlePos"] call ExAd_fnc_getNextIDC),[_rightCol, _bgCompTop, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_POS_SIZE,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText; + +[_display,_newParent,([_slideClass,"strTxtSliderX"] call ExAd_fnc_getNextIDC),[_rightCol, _bgCompTop + _rowH * 1, _cbW, _cbH],"X",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderX = [_display,_newParent,([_slideClass,"sliderX"] call ExAd_fnc_getNextIDC),[_rightCbStr, _bgCompTop + _rowH * 1 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderY"] call ExAd_fnc_getNextIDC),[_rightCol, _bgCompTop + _rowH * 2, _cbW, _cbH],"Y",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderY = [_display,_newParent,([_slideClass,"sliderY"] call ExAd_fnc_getNextIDC),[_rightCbStr, _bgCompTop + _rowH * 2 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderW"] call ExAd_fnc_getNextIDC),[_rightCol, _bgCompTop + _rowH * 3, _cbW, _cbH],"W",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderW = [_display,_newParent,([_slideClass,"sliderW"] call ExAd_fnc_getNextIDC),[_rightCbStr, _bgCompTop + _rowH * 3 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderH"] call ExAd_fnc_getNextIDC),[_rightCol, _bgCompTop + _rowH * 4, _cbW, _cbH],"H",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderH = [_display,_newParent,([_slideClass,"sliderH"] call ExAd_fnc_getNextIDC),[_rightCbStr, _bgCompTop + _rowH * 4 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + + +[_sliderR,[0,1],ExAd_SB_GUI_BgColor select 0] call ExAd_fnc_prepareSlider; +[_sliderG,[0,1],ExAd_SB_GUI_BgColor select 1] call ExAd_fnc_prepareSlider; +[_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["(_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["(_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; +[_display,_newParent,([_slideClass,"strTxtTitleTextFont"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop, _leftColW, _rowH],STR_ExAd_SB_APP_COMBO_FONT,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText; +_comboFont = [_display,_newParent,([_slideClass,"comboFont"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 1, _cbStrW, _rowH * 0.75],"ExAd_SB_Text_Font = ((_this select 0) lbData (_this select 1))",STR_ExAd_SB_APP_COMBO_TOOLTIP_FONT] call ExAd_fnc_createCombo; +{ + 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 { + if((_comboFont lbData _i) isEqualTo ExAd_SB_Text_Font)exitWith{ + _comboFont lbSetCurSel _i; + } +}; + +_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; +_sliderFontR = [_display,_newParent,([_slideClass,"sliderFontR"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 1 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderFontG"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 2, _cbW, _cbH],"G",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderFontG = [_display,_newParent,([_slideClass,"sliderFontG"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 2 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_display,_newParent,([_slideClass,"strTxtSliderFontB"] call ExAd_fnc_getNextIDC),[_leftCol, _textCompTop + _rowH * 3, _cbW, _cbH],"B",_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_cbStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderFontB = [_display,_newParent,([_slideClass,"sliderFontB"] call ExAd_fnc_getNextIDC),[_cbStr, _textCompTop + _rowH * 3 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + +[_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,"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 * 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; + +[_display,_newParent,([_slideClass,"strTxtTitleTextSize"] call ExAd_fnc_getNextIDC),[_rightCol, _textCompTop + _rowH * 7, _leftColW, _rowH],STR_ExAd_SB_APP_SLIDER_TEXT_PADDING,_cbStrTextFont,_cbStrTextSize,_cbStrTextColor,_titleStrAlign,1] call ExAd_fnc_createStructuredText; +_sliderTextPadding = [_display,_newParent,([_slideClass,"sliderTextMargin"] call ExAd_fnc_getNextIDC),[_rightCbStr, _textCompTop + _rowH * 8 + _margin, _cbStrW, _rowH * _scale]] call ExAd_fnc_createXSliderH; + + +[_sliderFontR,[0,1],ExAd_SB_GUI_TextColor select 0] call ExAd_fnc_prepareSlider; +[_sliderFontG,[0,1],ExAd_SB_GUI_TextColor select 1] call ExAd_fnc_prepareSlider; +[_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["(_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["(_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 * 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 \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp index 5c99c30..3cdda09 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp @@ -34,6 +34,8 @@ file = "ExAdClient\XM8\Functions"; class createXList {}; class createXSliderH {}; class getAppCtrl {}; + class getBlankSpace {}; class getNextIDC {}; + class prepareSlider {}; class postInitXM8 {file = "ExAdClient\XM8\postInit.sqf"; postInit = 1;}; }; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_getBlankSpace.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_getBlankSpace.sqf new file mode 100644 index 0000000..8a3ce9a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_getBlankSpace.sqf @@ -0,0 +1,23 @@ +/* + fn_getBlankSpace.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["_size"]; +_response = ""; +for "_i" from 0 to _size do { + _response = format["%1 ",_response] +}; +_response \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_prepareSlider.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_prepareSlider.sqf new file mode 100644 index 0000000..1030d6a --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_prepareSlider.sqf @@ -0,0 +1,24 @@ +/* + fn_prepareSlider.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["_ctrl","_range","_pos"]; + +_ctrl sliderSetRange _range; +_ctrl sliderSetSpeed [500, 500]; +_ctrl sliderSetPosition _pos; + +true \ No newline at end of file diff --git a/mpmissions/Exile.Altis/config.cpp b/mpmissions/Exile.Altis/config.cpp index c5c5f95..925c135 100644 --- a/mpmissions/Exile.Altis/config.cpp +++ b/mpmissions/Exile.Altis/config.cpp @@ -1,6 +1,6 @@ class CfgXM8 { - extraApps[] = {"ExAd_VG","ExAd_Info","ExAd_CHVD","ExAd_Journal","ExAd_Bike","ExAd_Quad"}; + extraApps[] = {"ExAd_VG","ExAd_Info","ExAd_CHVD","ExAd_Journal","ExAd_Bike","ExAd_Quad","ExAd_SB"}; class ExAd_VG { @@ -60,6 +60,13 @@ class CfgXM8 packable = 1; quickFunction = "['ExAd_Quad'] call ExAd_XM8_DV_fnc_spawnVehicle"; }; + class ExAd_SB + { + title = "Statsbar Settings"; + controlID = 50400; //IDC:50400 -> 50475 || These need to be unique and out of range from each other + logo = "ExadClient\XM8\Apps\SB_Settings\Icon_SB.paa"; + onLoad = "ExAdClient\XM8\Apps\SB_Settings\onLoad.sqf"; + }; }; class CfgExileCustomCode diff --git a/mpmissions/Exile.Altis/stringtable.xml b/mpmissions/Exile.Altis/stringtable.xml index 52ba0cb..deccff5 100644 --- a/mpmissions/Exile.Altis/stringtable.xml +++ b/mpmissions/Exile.Altis/stringtable.xml @@ -112,9 +112,100 @@ A brute force hack is detected on the grid! - - + + + + + + Go Back + + + Kill/Death Ratio + + + Health + + + Thirst + + + Hunger + + + POP TABS in wallet + + + POP TABS in bank + + + Respect + + + Use color indications + + + FPS + + + Restart time + + + Body Temperature + + + Grid location + + + Compass + + + Players online + + + Family members online + + + Hide Exile Status bar + + + Background Color + + + Position/Size + + + Font + + + Font + + + Align + + + Text Color + + + Update Rate + + + Text Size + + + Margin + + + Padding + + + Image Size + + + Show + + + Hide - + \ No newline at end of file