Add 3den attribute to disable bft (#4452)

* add 3den object attribte to disable BFT on the object

* delay setVariable public on group

* fix tooltip
This commit is contained in:
commy2 2016-09-24 21:46:03 +02:00 committed by Glowbal
parent 0b3d38a72f
commit c1ead851cb
4 changed files with 41 additions and 1 deletions

View File

@ -8,4 +8,14 @@ class Cfg3DEN {
};
};
};
class Group {
class AttributeCategories {
class ace_attributes {
displayName = CSTRING(Options);
collapsed = 1;
class Attributes {};
};
};
};
};

21
addons/map/Cfg3DEN.hpp Normal file
View File

@ -0,0 +1,21 @@
class Cfg3DEN {
class Group {
class AttributeCategories {
class ace_attributes {
class Attributes {
class GVAR(hideBlueForceMarker) {
property = QGVAR(hideBlueForceMarker);
control = "Checkbox";
displayName = CSTRING(disableBFT);
tooltip = CSTRING(disableBFT_description);
// groups are kaputt. have to delay setVariable public for it to work.
expression = QUOTE(if (_value) then {[ARR_2({(_this select 0) setVariable [ARR_3('%s',_this select 1,true)];},[ARR_2(_this,_value)])] call CBA_fnc_execNextFrame};);
typeName = "BOOL";
defaultValue = "(false)"; // fix pbo project preprocessing bug
};
};
};
};
};
};

View File

@ -26,6 +26,7 @@ class RscButtonMenu;
class RscEdit;
#include "ACE_Settings.hpp"
#include "Cfg3DEN.hpp"
#include "CfgEventHandlers.hpp"
#include "CfgMarkers.hpp"
#include "CfgVehicles.hpp"

View File

@ -374,5 +374,13 @@
<Spanish>Cambiar el canal de marcadores inicial al comenzar la misión</Spanish>
<French>Change le canal de communication par défaut au début de la mission.</French>
</Key>
<Key ID="STR_ACE_Map_disableBFT">
<English>Disable BFT</English>
<German>BFT deaktivieren</German>
</Key>
<Key ID="STR_ACE_Map_disableBFT_description">
<English>Always disable Blue Force Tracking for this group.</English>
<German>Blue Force Tracking für diese Gruppe immer deaktivieren.</German>
</Key>
</Package>
</Project>
</Project>