daily pastebin goal
31%
SHARE
TWEET

fn_impoundMenu.sqf

a guest Dec 4th, 2015 314 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <macro.h>
  2. /*
  3.         File: fn_impoundMenu.sqf
  4.        
  5.        
  6.         Description:
  7.         Not actually a impound menu, may act as confusion to some but that is what I wanted.
  8.         The purpose of this menu is it is now called a 'Garage' where vehicles are stored (persistent ones).
  9. */
  10. private["_vehicles","_control"];
  11. disableSerialization;
  12. _vehicles = [_this,0,[],[[]]] call BIS_fnc_param;
  13.  
  14. ctrlShow[2803,false];
  15. ctrlShow[2830,false];
  16. waitUntil {!isNull (findDisplay 2800)};
  17.  
  18. if(EQUAL(count _vehicles,0)) exitWith {
  19.         ctrlSetText[2811,localize "STR_Garage_NoVehicles"];
  20. };
  21.  
  22. _control = CONTROL(2800,2802);
  23. lbClear _control;
  24.  
  25. {
  26.         _vehicleInfo = [SEL(_x,2)] call life_fnc_fetchVehInfo;
  27.         _control lbAdd (SEL(_vehicleInfo,3));
  28.         _tmp = [SEL(_x,2),SEL(_x,8),SEL(_x,9)];
  29.         _tmp = str(_tmp);
  30.         _control lbSetData [(lbSize _control)-1,_tmp];
  31.         _control lbSetPicture [(lbSize _control)-1,SEL(_vehicleInfo,2)];
  32.         _control lbSetValue [(lbSize _control)-1,SEL(_x,0)];
  33. } foreach _vehicles;
  34.  
  35. ctrlShow[2810,false];
  36. ctrlShow[2811,false];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top