mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Initialize defaultLoadoutsList by default
This commit is contained in:
parent
c3502d6dcc
commit
a53d21046e
@ -8,6 +8,7 @@ PREP_RECOMPILE_START;
|
|||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
// Arsenal
|
// Arsenal
|
||||||
|
GVAR(defaultLoadoutsList) = [];
|
||||||
GVAR(modList) = ["","curator","kart","heli","mark","expansion","expansionpremium"];
|
GVAR(modList) = ["","curator","kart","heli","mark","expansion","expansionpremium"];
|
||||||
|
|
||||||
[QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_Settings_fnc_init;
|
[QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_Settings_fnc_init;
|
||||||
|
@ -16,7 +16,7 @@ params ["_display"];
|
|||||||
|
|
||||||
if (GVAR(shiftState)) then {
|
if (GVAR(shiftState)) then {
|
||||||
|
|
||||||
if (isNil QGVAR(defaultLoadoutsList) || {GVAR(defaultLoadoutsList) isEqualTo []}) exitWith {
|
if (GVAR(defaultLoadoutsList) isEqualTo []) exitWith {
|
||||||
[_display, localize LSTRING(exportDefaultError)] call FUNC(message);
|
[_display, localize LSTRING(exportDefaultError)] call FUNC(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,12 +34,8 @@ if (isNil {GVAR(sharedLoadoutsNamespace) getVariable QGVAR(sharedLoadoutsVars)})
|
|||||||
GVAR(sharedLoadoutsNamespace) setVariable [QGVAR(sharedLoadoutsVars), [], true];
|
GVAR(sharedLoadoutsNamespace) setVariable [QGVAR(sharedLoadoutsVars), [], true];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isNil QGVAR(defaultLoadoutsList)) then {
|
if (is3DEN) then {
|
||||||
if (is3DEN) then {
|
GVAR(defaultLoadoutsList) append (QGVAR(DummyCategory) get3DENMissionAttribute QGVAR(DefaultLoadoutsListAttribute));
|
||||||
GVAR(defaultLoadoutsList) = (QGVAR(DummyCategory) get3DENMissionAttribute QGVAR(DefaultLoadoutsListAttribute));
|
|
||||||
} else {
|
|
||||||
GVAR(defaultLoadoutsList) = [];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isNil QGVAR(virtualItems)) then {
|
if (isNil QGVAR(virtualItems)) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user