Skip to content

Commit

Permalink
Save texture options using CBA Extended Loadout #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jetelain committed Sep 18, 2022
1 parent 6c9f4d2 commit 97bf8e4
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 97bf8e4

Please sign in to comment.