From fba15a1c83c75ca35e2c26fc1452684d71114c0a Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Thu, 2 Nov 2017 20:48:01 +0100 Subject: [PATCH] Change sharedLoadouts tab curSel selection to lnbData instead of lnbText --- addons/arsenal/XEH_postInit.sqf | 2 +- addons/arsenal/functions/fnc_fillLoadoutsList.sqf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/arsenal/XEH_postInit.sqf b/addons/arsenal/XEH_postInit.sqf index c15ff5143a..c6f8867a1e 100644 --- a/addons/arsenal/XEH_postInit.sqf +++ b/addons/arsenal/XEH_postInit.sqf @@ -38,7 +38,7 @@ GVAR(lastSearchTextRight) = ""; if (!(isNil QGVAR(currentLoadoutsTab)) && {GVAR(currentLoadoutsTab) == IDC_buttonSharedLoadouts}) then { - private _curSelText =_contentPanel lnbText [(lnbCurSelRow _contentPanel), 1]; + private _curSelText =_contentPanel lnbData [(lnbCurSelRow _contentPanel), 1]; ([_loadoutData] call FUNC(verifyLoadout)) params ["_loadout", "_nullItemsAmount", "_unavailableItemsAmount"]; private _newRow = _contentPanel lnbAddRow [_playerName, _loadoutName]; diff --git a/addons/arsenal/functions/fnc_fillLoadoutsList.sqf b/addons/arsenal/functions/fnc_fillLoadoutsList.sqf index 881edd95cc..97bdac1c4d 100644 --- a/addons/arsenal/functions/fnc_fillLoadoutsList.sqf +++ b/addons/arsenal/functions/fnc_fillLoadoutsList.sqf @@ -80,6 +80,8 @@ if (GVAR(currentLoadoutsTab) != IDC_buttonSharedLoadouts) then { _contentListCtrl lnbSetPicture [[_newRow, 8], getText (configFile >> "cfgWeapons" >> (_loadout select 6) >> "picture")]; _contentListCtrl lnbSetPicture [[_newRow, 9], getText (configFile >> "cfgGlasses" >> (_loadout select 7) >> "picture")]; + _contentListCtrl lnbSetData [[_newRow, 1], _playerName + _loadoutName]; + if (_nullItemsAmount > 0) then { _contentListCtrl lnbSetColor [[_newRow, 1], [1, 0, 0, 0.5]];