Change sharedLoadouts tab curSel selection to lnbData instead of lnbText

This commit is contained in:
Josuan Albin
2017-11-02 20:48:01 +01:00
parent d6ffca9c70
commit fba15a1c83
2 changed files with 3 additions and 1 deletions

View File

@ -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];

View File

@ -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]];