Skip to content

Commit

Permalink
Fixed getLoadout
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Mar 6, 2020
1 parent 1e33f95 commit b19f666
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/getLoadoutsFromUnits/functions/fnc_createConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ private _units = ((get3DENSelected "object") select {_x isKindOf "CAManBase"}) s
GVAR(variables) = [_units, _types];

//Create Gui to get loadout name and medic equip
[_units, _types] call FUNC(createGUI);
[] call FUNC(createGUI);

1 change: 0 additions & 1 deletion addons/getLoadoutsFromUnits/functions/fnc_createGUI.sqf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "script_component.hpp"
params ["_units"];

(findDisplay 313) createDisplay QGVAR(getUnitsLoadoutsGui);

5 changes: 2 additions & 3 deletions addons/getLoadoutsFromUnits/functions/fnc_onBtnOk.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private _structuredText = [];
private _tab = " ";
private _doubleTab = _tab + _tab;

GVAR(units) params ["_units", "_types"];
GVAR(variables) params ["_units", "_types"];

if (cbChecked (_display displayCtrl IDC_ITEMS)) then {
{
Expand Down Expand Up @@ -73,7 +73,6 @@ _structuredText append ([
"handgunWeaponPointer",
"handgunWeaponUnderbarrel",
"handgunWeaponUnderbarrelMagazine",

"goggles",
"nvgoggles",
"binoculars",
Expand All @@ -93,6 +92,6 @@ _structuredText pushBack (_tab + "class Type {");
_structuredText pushBack (_tab + "};");
_structuredText pushBack "};";

GVAR(units) = nil;
GVAR(variables) = nil;

copyToClipboard (_structuredText joinString (toString [13,10]));
2 changes: 1 addition & 1 deletion addons/getLoadoutsFromUnits/functions/fnc_onLoad.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ disableSerialization;

_categoryIndex = _categoryIndex + 1;

} forEach (GVAR(units) select 0);
} forEach (GVAR(variables) select 0);

lbSort _listbox;
} forEach [IDC_CFR, IDC_SQL, IDC_PTL];

0 comments on commit b19f666

Please sign in to comment.