mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add option to always display cursor for self interaction
This commit is contained in:
parent
85a77150c9
commit
a2a9643627
@ -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";
|
||||
};
|
||||
};
|
||||
|
@ -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;
|
||||
|
7
addons/interact_menu/stringtable.xml
Normal file
7
addons/interact_menu/stringtable.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user