mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
0b3d38a72f
commit
c1ead851cb
@ -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
21
addons/map/Cfg3DEN.hpp
Normal 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
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -26,6 +26,7 @@ class RscButtonMenu;
|
||||
class RscEdit;
|
||||
|
||||
#include "ACE_Settings.hpp"
|
||||
#include "Cfg3DEN.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgMarkers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user