Update EPOCH_startNPCTraderMenu.sqf

This commit is contained in:
He-Man 2016-12-13 17:12:11 +01:00 committed by GitHub
parent 7a30a439c1
commit 13f27ba56f

View File

@ -1,6 +1,8 @@
//[[[cog import generate_private_arrays ]]]
private ["_ok","_slot","_target"];
//[[[end]]]
_config = 'CfgItemSort' call EPOCH_returnConfig;
_MainCategoriearray = getarray (_config >> "MainCategories" >> "Classes");
_target = cursorTarget;
if (alive _target) then {
_slot = _target getVariable ["AI_SLOT",-1];
@ -11,7 +13,11 @@ if (alive _target) then {
if (!_ok) exitWith {};
9992 cutRsc["EpochGameUI2", "PLAIN", 2, false];
((uiNamespace getVariable "EPOCH_EpochGameUI2") displayCtrl 21208) ctrlSetText format["%1", EPOCH_playerCrypto];
{lbAdd[42100,_x];lbAdd[42101,_x]} forEach ["All","Magazines","Items","Vehicles"];
{
_categorie = _x select 1;
lbAdd[42100,_categorie];
lbAdd[42101,_categorie]
} forEach _MainCategoriearray;
lbSetCurSel[42100, 0];
lbSetCurSel[42101, 0];
};