2017-09-10 19:43:03 +00:00
|
|
|
#define GET_1ST_ARRAY(config) (if (isArray (config)) then {getArray (config) select 0} else {[ARR_3(0,0,0)]})
|
2021-02-18 18:58:08 +00:00
|
|
|
#define DEFAULT_HOOKS GET_1ST_ARRAY(configOf _this >> QQGVAR(hooks))
|
2017-09-10 19:43:03 +00:00
|
|
|
|
|
|
|
class Cfg3DEN {
|
|
|
|
class Object {
|
|
|
|
class AttributeCategories {
|
|
|
|
class ace_attributes {
|
|
|
|
class Attributes {
|
|
|
|
class GVAR(fuelCargo) {
|
|
|
|
displayName = CSTRING(fuelCargo_edenName);
|
|
|
|
tooltip = CSTRING(fuelCargo_edenDesc);
|
|
|
|
property = QGVAR(fuelCargo);
|
|
|
|
control = "EditShort";
|
2024-06-20 05:04:34 +00:00
|
|
|
expression = QUOTE(if (_value != (_this call FUNC(getFuelCargo))) then {[ARR_2(_this,_value)] call FUNC(makeSource)});
|
|
|
|
defaultValue = QUOTE(_this call FUNC(getFuelCargo));
|
2017-09-10 19:43:03 +00:00
|
|
|
validate = "number";
|
|
|
|
condition = "(1-objectBrain)*(1-objectAgent)";
|
|
|
|
typeName = "NUMBER";
|
|
|
|
};
|
|
|
|
class GVAR(hooks) {
|
|
|
|
displayName = CSTRING(hooks_edenName);
|
|
|
|
tooltip = CSTRING(hooks_edenDesc);
|
|
|
|
property = QGVAR(hooks);
|
|
|
|
control = "EditXYZ";
|
2021-02-27 17:05:05 +00:00
|
|
|
expression = QUOTE(if (_value isNotEqualTo DEFAULT_HOOKS) then {_this setVariable [ARR_3('%s',[_value],true)]});
|
2017-09-10 19:43:03 +00:00
|
|
|
defaultValue = QUOTE(DEFAULT_HOOKS);
|
|
|
|
condition = "(1-objectBrain)*(1-objectAgent)";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|