Skip to content

Commit f68f93e

Browse files
authored
Merge pull request #30 from jetelain/cba-extended-loadout-compat
Save texture options using CBA Extended Loadout #10
2 parents 6c9f4d2 + 97bf8e4 commit f68f93e

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

addons/gearinfo/XEH_postInit.sqf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
#include "script_component.hpp"
1+
#include "script_component.hpp"
2+
3+
["CBA_loadoutSet", {
4+
params ["_unit", "_loadout", "_extendedInfo"];
5+
private _textureOptions = _extendedInfo getOrDefault [QGVARMAIN(textureOptions), []];
6+
if (_textureOptions isNotEqualTo []) then {
7+
[_unit, _textureOptions, false] call FUNC(setTextureOptions);
8+
};
9+
}] call CBA_fnc_addEventHandler;
10+
11+
["CBA_loadoutGet", {
12+
params ["_unit", "_loadout", "_extendedInfo"];
13+
_extendedInfo set [QGVARMAIN(textureOptions), [_unit, false] call FUNC(getTextureOptions)];
14+
}] call CBA_fnc_addEventHandler;

addons/main/script_version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#define MAJOR 0
22
#define MINOR 7
3-
#define PATCH 6
4-
#define BUILD 1
3+
#define PATCH 7
4+
#define BUILD 0

0 commit comments

Comments
 (0)