Skip to content

Commit

Permalink
Merge pull request #20 from KillahPotatoes/KPCF-v1.0.2
Browse files Browse the repository at this point in the history
KPCF v1.0.2 publishing
  • Loading branch information
Dubjunk authored Oct 19, 2018
2 parents b973916 + 4b13175 commit d116c1f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (!(KPCF_activeStorage canAdd [_item, _amount])) exitWith {
// Add the given item
KPCF_activeStorage addItemCargoGlobal [_item, _amount];

remoteExecCall ["KPCF_fnc_getInventory", -2];
remoteExecCall ["KPCF_fnc_getInventory", (allPlayers - entities "HeadlessClient_F")];

private _config = [_item] call KPCF_fnc_getConfigPath;
private _name = (getText (configFile >> _config >> _item >> "displayName"));
Expand Down
2 changes: 1 addition & 1 deletion KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ deleteVehicle KPCF_activeStorage;

KPCF_activeStorage = objNull;

remoteExecCall ["KPCF_fnc_getInventory", -2];
remoteExecCall ["KPCF_fnc_getInventory", (allPlayers - entities "HeadlessClient_F")];

private _config = [typeOf KPCF_activeStorage] call KPCF_fnc_getConfigPath;
private _name = (getText (configFile >> _config >> typeOf KPCF_activeStorage >> "displayName"));
Expand Down
2 changes: 1 addition & 1 deletion KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ if (_storageIndex == -1) exitWith {
// Define active Storage
KPCF_activeStorage = KPCF_nearStorage select _storageIndex;

remoteExecCall ["KPCF_fnc_getInventory", -2];
remoteExecCall ["KPCF_fnc_getInventory", (allPlayers - entities "HeadlessClient_F")];
4 changes: 2 additions & 2 deletions KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (count KPCF_inventory == 0) exitWith {
clearMagazineCargoGlobal KPCF_activeStorage;
clearItemCargoGlobal KPCF_activeStorage;
clearBackpackCargoGlobal KPCF_activeStorage;
remoteExecCall ["KPCF_fnc_getInventory", -2];
remoteExecCall ["KPCF_fnc_getInventory", (allPlayers - entities "HeadlessClient_F")];
};

// Clear the storage
Expand All @@ -37,4 +37,4 @@ for "_i" from 0 to (_count-1) do {
KPCF_activeStorage addItemCargoGlobal [(KPCF_inventory select _i) select 0, (KPCF_inventory select _i) select 1];
};

remoteExecCall ["KPCF_fnc_getInventory", -2];
remoteExecCall ["KPCF_fnc_getInventory", (allPlayers - entities "HeadlessClient_F")];
4 changes: 2 additions & 2 deletions KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ class KPCF_dialog {

class controls {

class KP_DialogCross: KPGUI_PRE_DialogCrossS {};

// Crates

class KP_ComboCrate: KPGUI_PRE_Combo {
Expand Down Expand Up @@ -218,5 +216,7 @@ class KPCF_dialog {
tooltip = "$STR_KPCF_FILLLEVEL"
};

class KP_DialogCross: KPGUI_PRE_DialogCrossS {};

};
};
7 changes: 7 additions & 0 deletions KP-Cratefiller/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.0.2] - 2018-10-19

### Fixed
- The dialog closes if it's opened with "Enter"
- Inventory list won't refresh in SP

## [1.0.1] - 2018-10-19
### Added
- New variable in the config file to define the distance for the base object search radius
Expand All @@ -21,3 +27,4 @@
- Old debug testing outputs

[1.0.1]: https://github.com/KillahPotatoes/dubjunks-scripts/pull/11
[1.0.2]: https://github.com/KillahPotatoes/dubjunks-scripts/pull/20

0 comments on commit d116c1f

Please sign in to comment.