misc_functions.sqf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. @version: 1.0
  3. @file_name: misc_functions.sqf
  4. @file_author: TAW_Tonic
  5. @file_edit: 5/23/2013
  6. @file_description: A file of functions that well.. just weren't fat enough to make it to its own file.. EAT MORE PIE FUNCTIONS... EAT MORE PIE...
  7. */
  8. VAS_fnc_openDetails =
  9. {
  10. #include "macro.sqf"
  11. ctrlShow [VAS_detail_mags_list,true];
  12. ctrlShow[VAS_detail_mags,true];
  13. ctrlShow [VAS_detail_magsbg,true];
  14. };
  15. VAS_fnc_closeDetails =
  16. {
  17. #include "macro.sqf"
  18. ctrlShow [VAS_detail_mags_list,false];
  19. ctrlShow[VAS_detail_mags,false];
  20. ctrlShow [VAS_detail_magsbg,false];
  21. };
  22. VAS_fnc_quickMag =
  23. {
  24. private["_data","_handle"];
  25. _data = (_this select 0) lbData (_this select 1);
  26. [_data,true,nil,nil,nil] call VAS_fnc_handleItem;
  27. uiNamespace setVariable["VAS_UI_FILTER","mags"];
  28. uiNamespace setVariable ["VAS_UI_FILTER_VAR",nil];
  29. [] spawn VAS_fnc_playerDisplay;
  30. };
  31. VAS_fnc_quickItem =
  32. {
  33. private["_data","_handle"];
  34. _data = (_this select 0) lbData (_this select 1);
  35. _handle = [_data,true,nil,nil,nil] spawn VAS_fnc_handleItem;
  36. waitUntil {scriptDone _handle};
  37. [] spawn VAS_fnc_playerDisplay;
  38. };
  39. VAS_fnc_qRemoveItem =
  40. {
  41. private["_data","_handle"];
  42. _data = (_this select 0) lbData (_this select 1);
  43. [_data,false,nil,nil,nil] call VAS_fnc_handleItem;
  44. [] spawn VAS_fnc_playerDisplay;
  45. };