Advertisement
InnovativeStudios

fn_openStore.sqf

Jan 14th, 2023 (edited)
1,633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.63 KB | None | 0 0
  1. createDialog "SOG_FMSStore";
  2.  
  3. _array = _store getVariable "isStore";
  4. _currentCategory = _store getVariable "storeCategory";
  5. _currentModset = _store getVariable "storeModest";
  6.  
  7. diag_log format ["Category: %1 Modset %2", _currentCategory, _currentModset];
  8.  
  9. _storeName = _array select 0;
  10. _storeFilters = _array select 1;
  11. _storeItems = _array select 2;
  12. _storeMods = _array select 3;
  13.  
  14. ctrlSetText [1000, _storeName];
  15.  
  16. {
  17.     _index = lbAdd [2101, _x];
  18. } forEach _storeMods;
  19. lbSetCurSel [2101, 0];
  20.  
  21. {
  22.     _index = lbAdd [2102, _x];
  23. } forEach _storeFilters;
  24. lbSetCurSel [2102, 2];
  25.  
  26. [_currentCategory] call SOG_fnc_addItemsToStore;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement