mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update EPOCH_startNPCTraderMenu.sqf
This commit is contained in:
parent
7a30a439c1
commit
13f27ba56f
@ -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];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user