Guest User

Untitled

a guest
Apr 5th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /*
  2. File: fn_weaponShopMenu.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Something
  7. */
  8. private["_config","_itemInfo","_itemList","_store"];
  9. _store = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  10. [_store,player] call life_fnc_shopperInfo;
  11.  
  12. uiNamespace setVariable ["Weapon_Shop",_this select 3];
  13.  
  14. disableSerialization;
  15. if(!(createDialog "life_weapon_shop")) exitwith {};
  16.  
  17. _config = [_this select 3] call life_fnc_weaponShopCfg;
  18. if(typeName _config == "STRING") exitWith {hint _config; closeDialog 0;};
  19.  
  20. ctrlSetText[38401,_config select 0];
  21.  
  22. _filters = ((findDisplay 38400) displayCtrl 38402);
  23. lbClear _filters;
  24.  
  25. _filters lbAdd localize "STR_Shop_Weapon_ShopInv";
  26. _filters lbAdd localize "STR_Shop_Weapon_YourInv";
  27.  
  28. _filters lbSetCurSel 0;
Advertisement
Add Comment
Please, Sign In to add comment