Skip to content

Commit

Permalink
Merge pull request #30 from jetelain/cba-extended-loadout-compat
Browse files Browse the repository at this point in the history
Save texture options using CBA Extended Loadout #10
  • Loading branch information
jetelain authored Sep 18, 2022
2 parents 6c9f4d2 + 97bf8e4 commit f68f93e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion addons/gearinfo/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
#include "script_component.hpp"
#include "script_component.hpp"

["CBA_loadoutSet", {
params ["_unit", "_loadout", "_extendedInfo"];
private _textureOptions = _extendedInfo getOrDefault [QGVARMAIN(textureOptions), []];
if (_textureOptions isNotEqualTo []) then {
[_unit, _textureOptions, false] call FUNC(setTextureOptions);
};
}] call CBA_fnc_addEventHandler;

["CBA_loadoutGet", {
params ["_unit", "_loadout", "_extendedInfo"];
_extendedInfo set [QGVARMAIN(textureOptions), [_unit, false] call FUNC(getTextureOptions)];
}] call CBA_fnc_addEventHandler;
4 changes: 2 additions & 2 deletions addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 0
#define MINOR 7
#define PATCH 6
#define BUILD 1
#define PATCH 7
#define BUILD 0

0 comments on commit f68f93e

Please sign in to comment.