From a2a96436277c557a7b635b7064c389d8ce6dd072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Sat, 28 Feb 2015 18:56:57 -0300 Subject: [PATCH] Add option to always display cursor for self interaction --- addons/interact_menu/config.cpp | 9 +++++++++ addons/interact_menu/functions/fnc_keyDownSelfAction.sqf | 2 +- addons/interact_menu/stringtable.xml | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 addons/interact_menu/stringtable.xml diff --git a/addons/interact_menu/config.cpp b/addons/interact_menu/config.cpp index 528d272d6c..20fc30805e 100644 --- a/addons/interact_menu/config.cpp +++ b/addons/interact_menu/config.cpp @@ -15,3 +15,12 @@ class CfgPatches { #include "CfgEventHandlers.hpp" #include "CursorMenus.hpp" + +class ACE_Settings { + class GVAR(AlwaysUseCursorSelfInteraction) { + value = 0; + typeName = "BOOL"; + isClientSetable = 1; + displayName = "$STR_ACE_Interact_Menu_AlwaysUseCursorSelfInteraction"; + }; +}; diff --git a/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf b/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf index e91b5c6063..151a7f3b04 100644 --- a/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf +++ b/addons/interact_menu/functions/fnc_keyDownSelfAction.sqf @@ -17,7 +17,7 @@ if(!GVAR(keyDownSelfAction)) then { GVAR(keyDown) = false; GVAR(keyDownTime) = diag_tickTime; - GVAR(useCursorMenu) = (vehicle ACE_player != ACE_player) || visibleMap; + GVAR(useCursorMenu) = (vehicle ACE_player != ACE_player) || GVAR(AlwaysUseCursorSelfInteraction) || visibleMap; if (GVAR(useCursorMenu)) then { closeDialog 0; diff --git a/addons/interact_menu/stringtable.xml b/addons/interact_menu/stringtable.xml new file mode 100644 index 0000000000..cecb24fee2 --- /dev/null +++ b/addons/interact_menu/stringtable.xml @@ -0,0 +1,7 @@ + + + + + Always display cursor for self interaction + +