ACE3/addons/interaction/config.cpp

81 lines
2.5 KiB
C++
Raw Normal View History

#include "script_component.hpp"
2015-01-11 19:32:51 +00:00
class CfgPatches {
class ADDON {
2015-01-11 19:32:51 +00:00
units[] = {};
weapons[] = {};
2015-01-18 07:32:07 +00:00
requiredVersion = REQUIRED_VERSION;
2015-01-13 05:14:27 +00:00
requiredAddons[] = {"ace_common"};
2015-01-11 19:32:51 +00:00
author[] = {"commy2", "KoffeinFlummi", "CAA-Picard", "bux578"};
authorUrl = "https://github.com/commy2/";
2015-01-18 07:32:07 +00:00
VERSION_CONFIG;
2015-01-11 19:32:51 +00:00
};
};
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include <Menu_Config.hpp>
2015-01-13 16:08:49 +00:00
class ACE_Default_Keys {
2015-01-11 19:32:51 +00:00
class openInteractionMenuNew {
displayName = "$STR_ACE_Interaction_InteractionMenu";
2015-01-11 19:32:51 +00:00
condition = "true";
2015-01-13 22:54:21 +00:00
statement = QUOTE(call FUNC(onButtonDown));
conditionUp = QUOTE(!isNull (findDisplay 1713999) && {profileNamespace getVariable [ARR_2(QUOTE(QGVAR(AutoCloseMenu)), false)]});
statementUp = QUOTE(if (GVAR(MenuType) mod 2 == 0) then {call FUNC(onButtonUp)};);
exceptions[] = {"ACE_Drag_isNotDragging", "ACE_Medical_canTreat", "ACE_Interaction_isNotEscorting", "ACE_Interaction_isNotSwimming"};
2015-01-11 19:32:51 +00:00
key = 219;
shift = 0;
control = 0;
alt = 0;
};
class openInteractionMenuSelfNew {
displayName = "$STR_ACE_Interaction_InteractionMenuSelf";
2015-01-11 19:32:51 +00:00
condition = "true";
2015-01-13 22:54:21 +00:00
statement = QUOTE(call FUNC(onButtonDownSelf));
conditionUp = QUOTE(!isNull (findDisplay 1713999) && {profileNamespace getVariable [ARR_2(QUOTE(QGVAR(AutoCloseMenu)), false)]});
statementUp = QUOTE(if (EGVAR(interaction,MenuType) mod 2 == 1) then {call FUNC(onButtonUp)};);
2015-01-14 13:28:04 +00:00
exceptions[] = {"ACE_Drag_isNotDragging", "ACE_Medical_canTreat", "ACE_Interaction_isNotEscorting", "ACE_Interaction_isNotSwimming", "ACE_Common_notOnMap"};
2015-01-11 19:32:51 +00:00
key = 219;
shift = 0;
control = 1;
alt = 0;
};
};
2015-01-13 16:08:49 +00:00
class ACE_Options {
2015-01-11 19:32:51 +00:00
class Interaction_FlowMenu {
displayName = "$STR_ACE_Interaction_FlowMenu";
2015-01-11 19:32:51 +00:00
default = 0;
};
class Interaction_AutoCloseMenu {
displayName = "$STR_ACE_Interaction_AutoCloseMenu";
2015-01-11 19:32:51 +00:00
default = 0;
};
class Interaction_AutoCenterCursor {
displayName = "$STR_ACE_Interaction_AutoCenterCursor";
2015-01-11 19:32:51 +00:00
default = 1;
};
};
class ACE_Parameters_Boolean {
ACE_Interaction_EnableTeamManagement = 1;
2015-01-11 19:32:51 +00:00
};
2015-01-13 16:08:49 +00:00
class ACE_canInteractConditions {
2015-01-17 17:26:51 +00:00
class GVAR(isNotEscorting) {
condition = QUOTE( !(_player getVariable ['ACE_isEscorting', false]) );
2015-01-11 19:32:51 +00:00
};
2015-01-17 17:26:51 +00:00
class GVAR(isNotCaptive) {
condition = QUOTE( !(_player getVariable ['ACE_isCaptive', false]) );
2015-01-11 19:32:51 +00:00
};
2015-01-17 17:26:51 +00:00
class GVAR(isNotSurrendering) {
condition = QUOTE( !(_player getVariable ['ACE_isSurrender', false]) );
2015-01-11 19:32:51 +00:00
};
2015-01-17 17:26:51 +00:00
class GVAR(isNotSwimming) {
condition = QUOTE( !underwater _player );
2015-01-11 19:32:51 +00:00
};
};