From 8192108e196bc53670568915ae5d84d68b97e974 Mon Sep 17 00:00:00 2001 From: Dedmen Miller Date: Sat, 23 Apr 2022 11:24:50 +0200 Subject: [PATCH] Pylons - Show ammo description in pylon loadout tooltips (#8881) * Show ammo description in pylon loadout tooltips * Update addons/pylons/functions/fnc_showDialog.sqf Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> --- addons/pylons/functions/fnc_showDialog.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/pylons/functions/fnc_showDialog.sqf b/addons/pylons/functions/fnc_showDialog.sqf index 146238a1b7..f3b01729c5 100644 --- a/addons/pylons/functions/fnc_showDialog.sqf +++ b/addons/pylons/functions/fnc_showDialog.sqf @@ -93,6 +93,8 @@ GVAR(comboBoxes) = []; { _combo lbAdd getText (configFile >> "CfgMagazines" >> _x >> "displayName"); _combo lbSetData [_forEachIndex + 1, _x]; + private _description = getText (configFile >> "CfgMagazines" >> _x >> "descriptionShort"); + _combo lbSetTooltip [_forEachIndex + 1, _description]; if (_x == _mag) then { _index = _forEachIndex + 1;