mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change defaultLoadoutsList export format and add a 3DEN check for it's default value
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user