Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair & medical object attributes for eden editor #3288

Merged
merged 3 commits into from
Feb 19, 2016
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions addons/medical/CfgEden.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
class Cfg3DEN {
class Object {
class AttributeCategories {
class StateSpecial {
class Attributes {
class ACE_IsMedic {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lower case is

property = QUOTE(ACE_IsMedic);
value = 0;
control = "Combo";
displayName = CSTRING(AssignMedicRoles_role_DisplayName);
tooltip = CSTRING(Attributes_isMedic_Description);
expression = QUOTE(_this setVariable [ARR_2(QUOTE(QGVAR(medicClass)),_value)];);
typeName = "NUMBER";
condition = "objectBrain";
defaultValue = 0;
class values {
class none {name = CSTRING(AssignMedicRoles_role_none); value = 0; default = 1;};
class medic {name = CSTRING(AssignMedicRoles_role_medic); value = 1; default = 0;};
class doctor {name = CSTRING(AssignMedicRoles_role_doctor); value = 2; default = 0;};
};
};
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_2(QUOTE(QGVAR(medicClass)),_value)];);
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_2(QUOTE(QGVAR(isMedicalFacility)),_value)];);
typeName = "BOOL";
condition = "(1 - objectBrain) * (1 - objectVehicle)";
defaultValue = "false";
};
};
};
};
};
};
2 changes: 1 addition & 1 deletion addons/medical/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class CfgPatches {
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
#include "CfgSounds.hpp"
#include "CfgEden.hpp"
#include "ACE_Medical_Treatments.hpp"
#include "ACE_Settings.hpp"
#include "UI\RscTitles.hpp"
#include "UI\triagecard.hpp"

8 changes: 8 additions & 0 deletions addons/medical/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3890,6 +3890,14 @@
<Russian>Нет жгута на этой части тела!</Russian>
<Portuguese>Não existe nenhum torniquete nesta parte do corpo!</Portuguese>
<Czech>Žádné škrtidlo na této části těla!</Czech>
</Key>
<Key ID="STR_ACE_Medical_Attributes_isMedic_Description">
<English>Medical training</English>
<Polish>Wyszkolenie medyczne</Polish>
</Key>
<Key ID="STR_ACE_Medical_Attributes_isMedicalVehicle_Description">
<English>Whether or not the object will be a medical vehicle.</English>
<Polish>Czy pojazdy ma być pojazdem medycznym?</Polish>
</Key>
</Package>
</Project>
48 changes: 48 additions & 0 deletions addons/repair/CfgEden.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
class Cfg3DEN {
class Object {
class AttributeCategories {
class StateSpecial {
class Attributes {
class ACE_IsEngineer {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lower case is

property = QUOTE(ACE_IsEngineer);
value = 0;
control = "Combo";
displayName = CSTRING(AssignEngineerRole_role_DisplayName);
tooltip = CSTRING(AssignEngineerRole_role_Description);
expression = "_this setVariable ['%s',_value];";
typeName = "NUMBER";
condition = "objectBrain";
defaultValue = 0;
class values {
class none {name = CSTRING(AssignEngineerRole_role_none); value = 0; default = 1;};
class engineer {name = CSTRING(AssignEngineerRole_role_engineer); value = 1; default = 0;};
class specialist {name = CSTRING(AssignEngineerRole_role_specialist); value = 2; default = 0;};
};
};
class ACE_isRepairVehicle {
property = QUOTE(ACE_isRepairVehicle);
value = 0;
control = "CheckboxNumber";
displayName = CSTRING(AssignRepairVehicle_role_DisplayName)
tooltip = CSTRING(AssignRepairVehicle_role_Description)
expression = "_this setVariable ['%s',_value];";
typeName = "NUMBER";
condition = "objectVehicle";
defaultValue = 0;
};
class ACE_isRepairFacility {
property = QUOTE(ACE_isRepairFacility);
value = 0;
control = "CheckboxNumber";
displayName = CSTRING(AssignRepairFacility_role_DisplayName)
tooltip = CSTRING(AssignRepairFacility_role_Description)
expression = "_this setVariable ['%s',_value];";
typeName = "NUMBER";
condition = "(1 - objectBrain) * (1 - objectVehicle)";
defaultValue = 0;
};
};
};
};
};
};
1 change: 1 addition & 0 deletions addons/repair/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgActions.hpp"
#include "CfgVehicles.hpp"
#include "CfgEden.hpp"