Add option to always display cursor for self interaction

This commit is contained in:
Nicolás Badano 2015-02-28 18:56:57 -03:00
parent 85a77150c9
commit a2a9643627
3 changed files with 17 additions and 1 deletions

View File

@ -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";
};
};

View File

@ -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;

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="Interact_Menu">
<Key ID="STR_ACE_Interact_Menu_AlwaysUseCursorSelfInteraction">
<English>Always display cursor for self interaction</English>
</Key>
</Project>