Change defaultLoadoutsList export format and add a 3DEN check for it's default value

This commit is contained in:
Josuan Albin
2017-11-04 02:00:59 +01:00
parent 6aa6f88554
commit 82955dd7cb
2 changed files with 9 additions and 3 deletions

View File

@ -13,11 +13,11 @@ if (GVAR(shiftState)) then {
switch true do {
case (_index == -1): {
"ace_clipboard" callExtension (format ["GVAR(defaultLoadoutsList) = [%1", endl]);
"ace_clipboard" callExtension (format ["[%1", endl]);
};
case (_index == _listLength): {
"ace_clipboard" callExtension "];;";
"ace_clipboard" callExtension "];";
};
default {
@ -37,3 +37,4 @@ if (GVAR(shiftState)) then {
[_display, "Current loadout exported to clipboard"] call FUNC(message);
};

View File

@ -21,7 +21,12 @@ if (isNil QGVAR(sharedLoadoutsVars)) then {
};
if (isNil QGVAR(defaultLoadoutsList)) then {
GVAR(defaultLoadoutsList) = [];
if (is3DEN) then {
GVAR(defaultLoadoutsList) = (QGVAR(DummyCategory) get3DENMissionAttribute QGVAR(DefaultLoadoutsListAttribute));
} else {
GVAR(defaultLoadoutsList) = [];
};
};
if (isNil QGVAR(virtualItems)) then {