From e19e24727c994ed2840e246692a69f44a9c51747 Mon Sep 17 00:00:00 2001 From: Dubjunk Date: Fri, 19 Oct 2018 19:24:12 +0200 Subject: [PATCH 1/3] fixed a bug where the dialog closes if it's opened with "Enter" --- KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp b/KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp index 13cf7c0..ce23b71 100644 --- a/KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp +++ b/KP-Cratefiller/KPCF/ui/KPCF_dialog.hpp @@ -51,8 +51,6 @@ class KPCF_dialog { class controls { - class KP_DialogCross: KPGUI_PRE_DialogCrossS {}; - // Crates class KP_ComboCrate: KPGUI_PRE_Combo { @@ -218,5 +216,7 @@ class KPCF_dialog { tooltip = "$STR_KPCF_FILLLEVEL" }; + class KP_DialogCross: KPGUI_PRE_DialogCrossS {}; + }; }; From c5470ac0de29424ca2ad9e86bac27e325ad420dd Mon Sep 17 00:00:00 2001 From: Dubjunk Date: Fri, 19 Oct 2018 19:29:42 +0200 Subject: [PATCH 2/3] fixed a bug that the inventory list won't refresh --- KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf | 2 +- KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf | 2 +- KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf | 2 +- KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf b/KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf index 97fbcec..0900bad 100644 --- a/KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf +++ b/KP-Cratefiller/KPCF/fnc/fn_addEquipment.sqf @@ -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")); diff --git a/KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf b/KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf index 96b457d..b37287f 100644 --- a/KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf +++ b/KP-Cratefiller/KPCF/fnc/fn_deleteCrate.sqf @@ -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")); diff --git a/KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf b/KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf index 15da3f2..d995fcf 100644 --- a/KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf +++ b/KP-Cratefiller/KPCF/fnc/fn_setActiveStorage.sqf @@ -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")]; diff --git a/KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf b/KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf index 773e108..fc17d8d 100644 --- a/KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf +++ b/KP-Cratefiller/KPCF/fnc/fn_setInventory.sqf @@ -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 @@ -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")]; From 4b13175f01f4632343d9257c559fa26d65758bd9 Mon Sep 17 00:00:00 2001 From: Dubjunk Date: Fri, 19 Oct 2018 19:49:38 +0200 Subject: [PATCH 3/3] changelog Update --- KP-Cratefiller/changelog.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/KP-Cratefiller/changelog.md b/KP-Cratefiller/changelog.md index aa08358..f88a082 100644 --- a/KP-Cratefiller/changelog.md +++ b/KP-Cratefiller/changelog.md @@ -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 @@ -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