mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4466f9e785
* Move litter to `treatment` * Move eden object attributes to `treatment` * Move treatment items to `treatment` * Move bodybag handling to `treatment` * Move state conditions to `statemachine` * Move radio addon handling to `feedback` * Move medical macros to `engine` * Move medical extension to `damage` * Fix texture and material paths after move * Remove duplicate medical menu config * Remove old faction class * Remove a bunch of old code
70 lines
3.1 KiB
C++
70 lines
3.1 KiB
C++
class ctrlToolbox;
|
|
|
|
class Cfg3DEN {
|
|
class Attributes {
|
|
class Default;
|
|
class Title: Default {
|
|
class Controls {
|
|
class Title;
|
|
};
|
|
};
|
|
class GVAR(isMedicControl): Title {
|
|
attributeLoad = "(_this controlsGroupCtrl 100) lbSetCurSel (((_value + 1) min 3) max 0);";
|
|
attributeSave = "(lbCurSel (_this controlsGroupCtrl 100)) - 1";
|
|
class Controls: Controls {
|
|
class Title: Title{};
|
|
class Value: ctrlToolbox {
|
|
idc = 100;
|
|
style = "0x02";
|
|
x = "48 * (pixelW * pixelGrid * 0.50)";
|
|
w = "82 * (pixelW * pixelGrid * 0.50)";
|
|
h = "5 * (pixelH * pixelGrid * 0.50)";
|
|
rows = 1;
|
|
columns = 4;
|
|
strings[] = {"$STR_3DEN_Attributes_Lock_Default_text", CSTRING(AssignMedicRoles_role_none), CSTRING(AssignMedicRoles_role_medic), CSTRING(AssignMedicRoles_role_doctorShort)};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
class Object {
|
|
class AttributeCategories {
|
|
class ace_attributes {
|
|
class Attributes {
|
|
class ace_isMedic {
|
|
property = QUOTE(ace_isMedic);
|
|
control = QGVAR(isMedicControl);
|
|
displayName = CSTRING(AssignMedicRoles_role_DisplayName);
|
|
tooltip = CSTRING(Attributes_isMedic_Description);
|
|
expression = QUOTE(if (_value > -1) then {_this setVariable [ARR_3(QQEGVAR(medical,medicClass),_value,true)];};);
|
|
typeName = "NUMBER";
|
|
condition = "objectBrain";
|
|
defaultValue = "-1";
|
|
};
|
|
class ace_isMedicalVehicle {
|
|
property = QUOTE(ace_isMedicalVehicle);
|
|
value = 0;
|
|
control = "CheckboxNumber";
|
|
displayName = CSTRING(AssignMedicVehicle_enabled_DisplayName);
|
|
tooltip = CSTRING(Attributes_isMedicalVehicle_Description);
|
|
expression = QUOTE(_this setVariable [ARR_3(QQEGVAR(medical,medicClass),_value,true)];);
|
|
typeName = "NUMBER";
|
|
condition = "objectVehicle";
|
|
defaultValue = 0;
|
|
};
|
|
class ace_isMedicalFacility {
|
|
property = QUOTE(ace_isMedicalFacility);
|
|
value = 0;
|
|
control = "Checkbox";
|
|
displayName = CSTRING(AssignMedicalFacility_enabled_DisplayName);
|
|
tooltip = CSTRING(AssignMedicalFacility_enabled_Description);
|
|
expression = QUOTE(_this setVariable [ARR_3(QQEQGVAR(medical,isMedicalFacility),_value,true)];);
|
|
typeName = "BOOL";
|
|
condition = "(1 - objectBrain) * (1 - objectVehicle)";
|
|
defaultValue = "false";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|