Added Filter for TraderMenu

This commit is contained in:
He-Man 2016-12-13 17:18:59 +01:00 committed by GitHub
parent b1d5c173b0
commit 55351e891c

@ -21,13 +21,12 @@
Returns:
NOTHING
*/
*/_aiItems
disableSerialization;
private ["_item","_itemCount","_itemOfferCount","_wpn","_bpck","_config","_name","_picture","_type","_vehicles","_sizeOut","_offerArray","_itemName","_itemIcon","_qty","_items","_qtys","_aiItems","_filterArray","_filterMagazines","_filterItems","_filterVehicle","_slot","_isPlayerFilter"];
//[[[cog import generate_private_arrays ]]]
private ["_aiItems","_bpck","_config","_filterArray","_filterItems","_filterMagazines","_filterVehicle","_filterWeapons","_index","_isPlayerFilter","_item","_itemCount","_itemIcon","_itemName","_itemOfferCount","_items","_name","_offerArray","_picture","_qty","_qtys","_sizeOut","_slot","_type","_vehicles","_wpn"];
//[[[end]]]
params ["_control","_index"];
_display = (finddisplay -8);
_playerlb = (_display displayCtrl 41500);
_Traderlb = (_display displayCtrl 41503);
_config = 'CfgItemSort' call EPOCH_returnConfig;
_MainCategoriearray = getarray (_config >> "MainCategories" >> "Classes");
_FilterArray = [];