2016-02-22 17:26:32 +00:00
|
|
|
class ctrlToolbox;
|
|
|
|
|
2016-02-07 22:56:45 +00:00
|
|
|
class Cfg3DEN {
|
2016-02-22 17:26:32 +00:00
|
|
|
class Attributes {
|
|
|
|
class Default;
|
|
|
|
class Title: Default {
|
|
|
|
class Controls {
|
|
|
|
class Title;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class GVAR(isMedicControl): Title {
|
2017-02-18 18:27:36 +00:00
|
|
|
attributeLoad = "(_this controlsGroupCtrl 100) lbSetCurSel (((_value + 1) min 3) max 0);";
|
|
|
|
attributeSave = "(lbCurSel (_this controlsGroupCtrl 100)) - 1";
|
2016-02-22 17:26:32 +00:00
|
|
|
class Controls: Controls {
|
|
|
|
class Title: Title{};
|
|
|
|
class Value: ctrlToolbox {
|
|
|
|
idc = 100;
|
|
|
|
style = "0x02";
|
2016-07-12 07:32:18 +00:00
|
|
|
x = "48 * (pixelW * pixelGrid * 0.50)";
|
|
|
|
w = "82 * (pixelW * pixelGrid * 0.50)";
|
|
|
|
h = "5 * (pixelH * pixelGrid * 0.50)";
|
2016-02-22 17:26:32 +00:00
|
|
|
rows = 1;
|
|
|
|
columns = 4;
|
|
|
|
strings[] = {"$STR_3DEN_Attributes_Lock_Default_text", CSTRING(AssignMedicRoles_role_none), CSTRING(AssignMedicRoles_role_medic), CSTRING(AssignMedicRoles_role_doctorShort)};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-02-07 22:56:45 +00:00
|
|
|
class Object {
|
|
|
|
class AttributeCategories {
|
2016-02-10 00:17:18 +00:00
|
|
|
class ace_attributes {
|
2016-02-07 22:56:45 +00:00
|
|
|
class Attributes {
|
2016-02-10 00:17:18 +00:00
|
|
|
class ace_isMedic {
|
|
|
|
property = QUOTE(ace_isMedic);
|
2016-02-22 17:26:32 +00:00
|
|
|
control = QGVAR(isMedicControl);
|
2016-02-07 22:56:45 +00:00
|
|
|
displayName = CSTRING(AssignMedicRoles_role_DisplayName);
|
|
|
|
tooltip = CSTRING(Attributes_isMedic_Description);
|
2017-02-18 18:27:36 +00:00
|
|
|
expression = QUOTE(if (_value > -1) then {_this setVariable [ARR_3(QUOTE(QGVAR(medicClass)),_value, true)];};);
|
2016-02-07 22:56:45 +00:00
|
|
|
typeName = "NUMBER";
|
|
|
|
condition = "objectBrain";
|
2016-02-22 17:26:32 +00:00
|
|
|
defaultValue = "-1";
|
2016-02-07 22:56:45 +00:00
|
|
|
};
|
2016-02-10 00:17:18 +00:00
|
|
|
class ace_isMedicalVehicle {
|
|
|
|
property = QUOTE(ace_isMedicalVehicle);
|
2016-02-07 22:56:45 +00:00
|
|
|
value = 0;
|
|
|
|
control = "CheckboxNumber";
|
2016-02-20 00:51:25 +00:00
|
|
|
displayName = CSTRING(AssignMedicVehicle_enabled_DisplayName);
|
|
|
|
tooltip = CSTRING(Attributes_isMedicalVehicle_Description);
|
2016-02-22 17:26:32 +00:00
|
|
|
expression = QUOTE(_this setVariable [ARR_3(QUOTE(QGVAR(medicClass)),_value, true)];);
|
2016-02-07 22:56:45 +00:00
|
|
|
typeName = "NUMBER";
|
|
|
|
condition = "objectVehicle";
|
|
|
|
defaultValue = 0;
|
|
|
|
};
|
2016-02-10 00:17:18 +00:00
|
|
|
class ace_isMedicalFacility {
|
|
|
|
property = QUOTE(ace_isMedicalFacility);
|
2016-02-07 22:56:45 +00:00
|
|
|
value = 0;
|
|
|
|
control = "Checkbox";
|
2016-02-20 00:51:25 +00:00
|
|
|
displayName = CSTRING(AssignMedicalFacility_enabled_DisplayName);
|
|
|
|
tooltip = CSTRING(AssignMedicalFacility_enabled_Description);
|
2016-02-22 17:26:32 +00:00
|
|
|
expression = QUOTE(_this setVariable [ARR_3(QUOTE(QGVAR(isMedicalFacility)),_value, true)];);
|
2016-02-07 22:56:45 +00:00
|
|
|
typeName = "BOOL";
|
|
|
|
condition = "(1 - objectBrain) * (1 - objectVehicle)";
|
|
|
|
defaultValue = "false";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|