-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save texture options using CBA Extended Loadout #10
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |