Added support for switching from 3d selections to radial menu

This commit is contained in:
Glowbal 2015-04-25 09:41:55 +02:00
parent cd13ee84b4
commit 55529d0396
4 changed files with 32 additions and 7 deletions

View File

@ -3,7 +3,7 @@ class ACE_Head {
displayName = "$STR_ACE_Interaction_Head";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
@ -75,7 +75,7 @@ class ACE_Torso {
displayName = "$STR_ACE_Interaction_Torso";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 1)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
@ -175,7 +175,7 @@ class ACE_ArmLeft {
displayName = "$STR_ACE_Interaction_ArmLeft";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 2)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
@ -332,7 +332,7 @@ class ACE_ArmRight {
displayName = "$STR_ACE_Interaction_ArmRight";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 3)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
@ -486,7 +486,7 @@ class ACE_LegLeft {
displayName = "$STR_ACE_Interaction_LegLeft";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 4)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;
@ -628,7 +628,7 @@ class ACE_LegRight {
displayName = "$STR_ACE_Interaction_LegRight";
runOnHover = 1;
statement = QUOTE([ARR_3(_target, true, 5)] call DFUNC(displayPatientInformation));
condition = "true";
ACTION_CONDITION
EXCEPTIONS
icon = PATHTOF(UI\icons\medical_cross.paa);
distance = MEDICAL_ACTION_DISTANCE;

View File

@ -143,4 +143,13 @@ class ACE_Settings {
typeName = "BOOL";
value = 0;
};
class GVAR(menuTypeStyle) {
displayName = "$STR_ACE_Medical_menuTypeDisplay";
description = "$STR_ACE_Medical_menuTypeDescription";
typeName = "SCALAR";
value = 0;
values[] = {"$STR_ACE_Medical_useSelection", "$STR_ACE_Medical_useRadial"};
isClientSettable = 1;
};
};

View File

@ -428,6 +428,7 @@ class CfgVehicles {
class ACE_Actions {
// Include actions in body parts for treatment while in the open
#define EXCEPTIONS exceptions[] = {};
#define ACTION_CONDITION condition = QUOTE(GVAR(menuTypeStyle) == 0);
#include "ACE_Medical_Actions.hpp"
// Create a consolidates medical menu for treatment while boarded
@ -436,12 +437,14 @@ class CfgVehicles {
displayName = "$STR_ACE_MEDICAL_ACTIONS_Medical";
runOnHover = 1;
exceptions[] = {"isNotInside"};
condition = QUOTE(vehicle _target != _target);
condition = QUOTE(vehicle _target != _target || GVAR(menuTypeStyle) == 1);
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
icon = PATHTOF(UI\icons\medical_cross.paa);
#undef EXCEPTIONS
#undef ACTION_CONDITION
#define EXCEPTIONS exceptions[] = {"isNotInside"};
#define ACTION_CONDITION condition = "true";
#include "ACE_Medical_Actions.hpp"
};
class GVAR(loadPatient) {

View File

@ -1635,5 +1635,18 @@
<Spanish>Aberración cromática</Spanish>
<French>Aberration chromatique</French>
</Key>
<Key ID="STR_ACE_Medical_menuTypeDisplay">
<English>Style of menu (Medical)</English>
</Key>
<Key ID="STR_ACE_Medical_menuTypeDescription">
<English>Select the type of menu you prefer; default 3d selections or radial.</English>
</Key>
<Key ID="STR_ACE_Medical_useSelection">
<English>Selections (3d)</English>
</Key>
<Key ID="STR_ACE_Medical_useRadial">
<English>Radial</English>
</Key>
</Package>
</Project>