//	@file Version: 1.0
//	@file Name: ADP_F_getClassName.sqf
//	@file Author: THumbert
//	@file Created: 12/14/2013
//	@file Description: Gets class info of selected Item

private ["_cfg","_info"];
_listbox = _this select 0;
_idx = _this select 1;
_classBox = _this select 2;
_PicBox = _this select 3;
_InfoBox = 1000;
_class = lbData [_listbox, _idx];
_Picture = lbPicture [_listbox, _idx];
_type = lbValue [_listbox, _idx];
if ((_type == 0) || (_type == 1) || (_type == 2)) then {_cfg = "CfgWeapons";} else{_cfg = "CfgVehicles";};
_className = str _class;
_ammo = getArray (configFile >> _cfg >> _class >> "magazines");
_ammotype = str _ammo;
_info = getText (configFile >> _cfg >> _class >> "Library" >> "libTextDesc");
if ((_info == "")&& (!isNil "_class")) then {_info = getText (configFile >> _cfg >> _class >> "Armory" >> "description");};
_info = str _info;
ctrlSetText [_classBox, _className];
ctrlSetText [1401, _ammotype];
ctrlSetText [_InfoBox, _info];
ctrlSetText [_PicBox, _Picture];	
