From afc8abce851bc66e3bce6b5fb911e08d386964dc Mon Sep 17 00:00:00 2001 From: commy2 Date: Mon, 20 Apr 2015 22:00:13 +0200 Subject: [PATCH] hide open bag option when it's not selected via scroll wheel --- addons/interact_menu/CfgActions.hpp | 7 +++++++ addons/interact_menu/config.cpp | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 addons/interact_menu/CfgActions.hpp diff --git a/addons/interact_menu/CfgActions.hpp b/addons/interact_menu/CfgActions.hpp new file mode 100644 index 0000000000..79af4f09b2 --- /dev/null +++ b/addons/interact_menu/CfgActions.hpp @@ -0,0 +1,7 @@ + +class CfgActions { + class None; + class OpenBag: None { + showWindow = 0; + }; +}; diff --git a/addons/interact_menu/config.cpp b/addons/interact_menu/config.cpp index 81d2dc3f75..eeff688a1a 100644 --- a/addons/interact_menu/config.cpp +++ b/addons/interact_menu/config.cpp @@ -14,6 +14,8 @@ class CfgPatches { #include "CfgEventHandlers.hpp" +#include "CfgActions.hpp" + #include "CursorMenus.hpp" class ACE_Settings {