From ba23e8ed8f963cbd81826d30dc98ff80dff59f63 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Tue, 26 Mar 2024 17:46:40 +0100 Subject: [PATCH] UI - Support pictures in mission list filter --- addons/ui/fnc_initDisplayRemoteMissions.sqf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/ui/fnc_initDisplayRemoteMissions.sqf b/addons/ui/fnc_initDisplayRemoteMissions.sqf index c08668ac3..e39703e9b 100644 --- a/addons/ui/fnc_initDisplayRemoteMissions.sqf +++ b/addons/ui/fnc_initDisplayRemoteMissions.sqf @@ -113,8 +113,10 @@ private _fnc_storeMapMissions = {_this spawn {isNil { // delay a frame private _value = _ctrlMissions lbValue _i; private _data = _ctrlMissions lbData _i; private _color = _ctrlMissions lbColor _i; + private _picture = _ctrlMissions lbPicture _i; + private _pictureRight = _ctrlMissions lbPictureRight _i; - _missions pushBack [_name, _value, _data, _color]; + _missions pushBack [_name, _value, _data, _color, _picture, _pictureRight]; }; _ctrlMissions setVariable [QGVAR(missions), _missions]; @@ -146,7 +148,7 @@ _display setVariable [QFUNC(filter), { lbClear _ctrlMissions; { - _x params ["_name", "_value", "_data", "_color"]; + _x params ["_name", "_value", "_data", "_color", "_picture", "_pictureRight"]; private _classname = _data splitString "." param [0, ""]; if (toLower _name find _filter != -1 && {_showStockMissions || {!(_classname in _stockMissions)}}) then { @@ -154,6 +156,8 @@ _display setVariable [QFUNC(filter), { _ctrlMissions lbSetValue [_index, _value]; _ctrlMissions lbSetData [_index, _data]; _ctrlMissions lbSetColor [_index, _color]; + _ctrlMissions lbSetPicture [_index, _picture]; + _ctrlMissions lbSetPictureRight [_index, _pictureRight]; }; } forEach _missions;