From c1967b4a4a64c566e858b560c27c2d64c88e3fb1 Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Fri, 3 Nov 2017 18:17:07 +0100 Subject: [PATCH] Add new event for 3rd parties in buttonCargo --- addons/arsenal/functions/fnc_buttonCargo.sqf | 2 ++ addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/arsenal/functions/fnc_buttonCargo.sqf b/addons/arsenal/functions/fnc_buttonCargo.sqf index c723a24d1d..32726f2afe 100644 --- a/addons/arsenal/functions/fnc_buttonCargo.sqf +++ b/addons/arsenal/functions/fnc_buttonCargo.sqf @@ -75,4 +75,6 @@ _loadIndicatorBarCtrl progressSetPosition _load; private _value = {_x == _item} count _items; _ctrlList lnbSetText [[_lnbCurSel, 2],str _value]; +[QGVAR(cargoChanged), [_display, _item, _addOrRemove, GVAR(shiftState)]] call CBA_fnc_localEvent; + [_ctrlList, _maxLoad] call FUNC(updateRightPanel); diff --git a/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf b/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf index 49f763630a..e720d22136 100644 --- a/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf +++ b/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf @@ -19,7 +19,6 @@ if (GVAR(currentLoadoutsTab) != IDC_buttonSharedLoadouts) then { _data deleteAt (_data find ((_data select {_x select 0 == _loadoutName}) select 0)); }; - _contentPanelCtrl setVariable [_loadoutName + QGVAR(currentLoadoutsTab), nil]; _contentPanelCtrl lnbDeleteRow _contentPanelCursSel; _contentPanelCtrl lnbSetCurSelRow (_contentPanelCursSel);