clean up of the config

This commit is contained in:
Glowbal 2015-08-07 20:15:09 +02:00
parent f21023b4ee
commit cd5b5f1d24
3 changed files with 47 additions and 52 deletions

View File

@ -0,0 +1,23 @@
class ACE_Settings {
class GVAR(allow) {
displayName = CSTRING(allow);
description = CSTRING(allow_Descr);
typeName = "BOOL";
value = 1;
};
class GVAR(useMenu) {
displayName = CSTRING(useMenu);
description = CSTRING(useMenu_Descr);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
class GVAR(openAfterTreatment) {
displayName = CSTRING(openAfterTreatment);
description = CSTRING(openAfterTreatment_Descr);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
};

View File

@ -0,0 +1,22 @@
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
};
class ACE_Actions {
// Create a consolidates medical menu for treatment while boarded
class ACE_MainActions {
class Medical_Menu {
displayName = CSTRING(OpenMenu);
runOnHover = 0;
exceptions[] = {"isNotInside"};
condition = QUOTE(GVAR(allow) && GVAR(useMenu));
statement = QUOTE([_target] call DFUNC(openMenu));
icon = PATHTOEF(medical,UI\icons\medical_cross.paa);
};
};
};
};
};

View File

@ -11,58 +11,8 @@ class CfgPatches {
VERSION_CONFIG;
};
};
class CfgAddons {
class PreloadAddons {
class ADDON {
list[] = {QUOTE(ADDON)};
};
};
};
#include "CfgEventHandlers.hpp"
#include "ui\menu.hpp"
class ACE_Settings {
class GVAR(allow) {
displayName = CSTRING(allow);
description = CSTRING(allow_Descr);
typeName = "BOOL";
value = 1;
};
class GVAR(useMenu) {
displayName = CSTRING(useMenu);
description = CSTRING(useMenu_Descr);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
class GVAR(openAfterTreatment) {
displayName = CSTRING(openAfterTreatment);
description = CSTRING(openAfterTreatment_Descr);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
};
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
};
class ACE_Actions {
// Create a consolidates medical menu for treatment while boarded
class ACE_MainActions {
class Medical_Menu {
displayName = CSTRING(OpenMenu);
runOnHover = 0;
exceptions[] = {"isNotInside"};
condition = QUOTE(GVAR(allow) && GVAR(useMenu));
statement = QUOTE([_target] call DFUNC(openMenu));
icon = PATHTOEF(medical,UI\icons\medical_cross.paa);
};
};
};
};
};
#include "ACE_Settings.hpp"
#include "CfgVehicles.hpp"