mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
This commit is contained in:
@ -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];
|
||||
|
@ -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]];
|
||||
|
Reference in New Issue
Block a user