mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3288 from SzwedzikPL/edenassignsettings
Repair & medical object attributes for eden editor
This commit is contained in:
commit
5d0d8576ea
11
addons/common/CfgEden.hpp
Normal file
11
addons/common/CfgEden.hpp
Normal file
@ -0,0 +1,11 @@
|
||||
class Cfg3DEN {
|
||||
class Object {
|
||||
class AttributeCategories {
|
||||
class ace_attributes {
|
||||
displayName = CSTRING(Options);
|
||||
collapsed = 1;
|
||||
class Attributes {};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -24,6 +24,7 @@ class CfgPatches {
|
||||
#include "CfgMoves.hpp"
|
||||
#include "CfgVoice.hpp"
|
||||
#include "CfgUnitInsignia.hpp"
|
||||
#include "CfgEden.hpp"
|
||||
|
||||
class ACE_Rsc_Display_Base {
|
||||
idd = -1;
|
||||
@ -79,7 +80,7 @@ class CfgUIGrids {
|
||||
displayName = "ACE Hint";
|
||||
description = "Textual in game feedback to the player.";
|
||||
preview = "\a3\Ui_f\data\GUI\Cfg\UIGrids\grid_hint_ca.paa";
|
||||
saveToProfile[] = {0,1};
|
||||
saveToProfile[] = {0,1};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
48
addons/medical/CfgEden.hpp
Normal file
48
addons/medical/CfgEden.hpp
Normal file
@ -0,0 +1,48 @@
|
||||
class Cfg3DEN {
|
||||
class Object {
|
||||
class AttributeCategories {
|
||||
class ace_attributes {
|
||||
class Attributes {
|
||||
class ace_isMedic {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -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"
|
||||
|
||||
|
@ -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
addons/repair/CfgEden.hpp
Normal file
48
addons/repair/CfgEden.hpp
Normal file
@ -0,0 +1,48 @@
|
||||
class Cfg3DEN {
|
||||
class Object {
|
||||
class AttributeCategories {
|
||||
class ace_attributes {
|
||||
class Attributes {
|
||||
class ace_isEngineer {
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -17,3 +17,4 @@ class CfgPatches {
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgActions.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgEden.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user