From e6c5930415febb96c358041c02a66e0294b6c2e5 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 4 May 2016 14:39:40 -0400 Subject: [PATCH] Fix unit icon in Advanced Trading selling from gear box Adds a nice icon of the unit in the top right below "Gear" text. --- .../AdvancedTrading/functions/z_at_getGearItems.sqf | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getGearItems.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getGearItems.sqf index d62041e22..4229969e3 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getGearItems.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getGearItems.sqf @@ -3,7 +3,7 @@ * * Gets all your items stored in your gear and innitiates the selling list. **/ -private ["_mags","_weaps","_skin","_formattedText","_icon"]; +private ["_mags","_weaps","_skin","_formattedText"]; #include "defines.sqf"; call Z_clearLists; Z_SellArray = []; @@ -12,16 +12,11 @@ Z_SellableArray = []; _weaps = weapons player; _skin = typeOf player; - -_pic = getText (configFile >> 'CfgVehicles' >> _skin >> 'picture'); -_icon = getText (configFile >> 'CfgVehicles' >> _skin >> 'icon'); - -if (!isNil '_pic' && _pic == "") then { - _pic = _icon; -}; +_pic = getText (configFile >> 'CfgVehicles' >> _skin >> 'portrait'); _formattedText = format [ - " %2 " + "%2
" + + "
" , _pic, localize "STR_UI_GEAR" ];