ACE3/addons/repair/CfgEden.hpp

72 lines
3.1 KiB
C++
Raw Normal View History

class ctrlToolbox;
2016-02-07 22:56:45 +00:00
class Cfg3DEN {
class Attributes {
class Default;
class Title: Default {
class Controls {
class Title;
};
};
2016-02-22 17:26:32 +00:00
class GVAR(isEngineerControl): Title {
attributeLoad = "(_this controlsGroupCtrl 100) lbsetcursel (((_value + 1) min 3) max 0);";
attributeSave = "(missionnamespace getvariable ['ace_isEng_temp',0]) - 1;";
class Controls: Controls {
class Title: Title{};
class Value: ctrlToolbox {
idc = 100;
style = "0x02";
2016-02-22 17:26:32 +00:00
x = "48 * (pixelW * 1.25 * 4)";
w = "82 * (pixelW * 1.25 * 4)";
h = "5 * (pixelH * 1.25 * 4)";
rows = 1;
columns = 4;
strings[] = {"$STR_3DEN_Attributes_Lock_Default_text", CSTRING(AssignEngineerRole_role_none), CSTRING(AssignEngineerRole_role_engineer), CSTRING(AssignEngineerRole_role_specialist)};
onToolboxSelChanged = "missionnamespace setvariable ['ace_isEng_temp',_this select 1];";
};
};
};
};
2016-02-07 22:56:45 +00:00
class Object {
class AttributeCategories {
class ace_attributes {
2016-02-07 22:56:45 +00:00
class Attributes {
class ace_isEngineer {
property = QUOTE(ace_isEngineer);
2016-02-07 22:56:45 +00:00
displayName = CSTRING(AssignEngineerRole_role_DisplayName);
tooltip = CSTRING(AssignEngineerRole_role_Description);
expression = "if (_value != -1) then {_this setVariable ['%s',_value, true];}";
2016-02-07 22:56:45 +00:00
typeName = "NUMBER";
condition = "objectBrain";
defaultValue = "-1";
2016-02-22 17:26:32 +00:00
control = QGVAR(isEngineerControl);
2016-02-07 22:56:45 +00:00
};
class ace_isRepairVehicle {
property = QUOTE(ace_isRepairVehicle);
2016-02-07 22:56:45 +00:00
value = 0;
control = "CheckboxNumber";
2016-02-20 00:51:25 +00:00
displayName = CSTRING(AssignRepairVehicle_role_DisplayName);
tooltip = CSTRING(AssignRepairVehicle_role_Description);
expression = "_this setVariable ['%s',_value, true];";
2016-02-07 22:56:45 +00:00
typeName = "NUMBER";
condition = "objectVehicle";
defaultValue = 0;
};
class ace_isRepairFacility {
property = QUOTE(ace_isRepairFacility);
2016-02-07 22:56:45 +00:00
value = 0;
control = "CheckboxNumber";
2016-02-20 00:51:25 +00:00
displayName = CSTRING(AssignRepairFacility_role_DisplayName);
tooltip = CSTRING(AssignRepairFacility_role_Description);
expression = "_this setVariable ['%s',_value, true];";
2016-02-07 22:56:45 +00:00
typeName = "NUMBER";
condition = "(1 - objectBrain) * (1 - objectVehicle)";
defaultValue = 0;
};
};
};
};
};
};