diff --git a/addons/main/CfgVehicles.hpp b/addons/main/CfgVehicles.hpp new file mode 100644 index 0000000..543ff80 --- /dev/null +++ b/addons/main/CfgVehicles.hpp @@ -0,0 +1,78 @@ +class CfgVehicles { + class Logic; + class Module_F : Logic + { + class AttributesBase + { + class Default; + class Edit; // Default edit box (i.e. text input field) + class Combo; // Default combo box (i.e. drop-down menu) + class Checkbox; // Default checkbox (returned value is Boolean) + class CheckboxNumber; // Default checkbox (returned value is Number) + class ModuleDescription; // Module description + class Units; // Selection of units on which the module is applied + }; + + class ModuleDescription + { + class AnyBrain; + }; + }; + class armatak_module_core: Module_F { + scope = 2; + scopeCurator = 2; + displayname = "ARMATAK Core"; + //icon = ""; + category = "Strategic"; + function = "armatak_fnc_core"; + functionPriority = 1; + isGlobal = 2; + isTriggerActivated = 0; + isDisposable = 1; + is3den = 0; + curatorCanAttach = 0; + curatorInfoType = "RscDisplayAttributeModuleNuke"; + + canSetArea = 0; + canSetAreaShape = 0; + canSetAreaHeight = 0; + + class AttributesValues { + size3[] = { 1, 1, -1 }; + isRectangle = 0; + }; + + class Attributes: AttributesBase { + class armatak_module_fts_api_instance_protocol: Combo { + property = "armatak_module_property_fts_api_instance_protocol"; + displayname = "FTS Protocol"; + tooltip = "FreeTAKServer instance protocol"; + typeName = "STRING"; + defaultValue = "http"; + + class Values { + class http { name = "HTTP"; value = "http"; }; + class https { name = "HTTPS"; value = "https"; }; + }; + }; + class armatak_module_fts_api_instance_address: Edit { + property = "armatak_module_property_fts_api_instance_address"; + displayname = "FTS Address"; + tooltip = "FreeTAKServer Instance Address"; + typeName = "STRING"; + defaultValue = "localhost"; + }; + class armatak_module_fts_api_instance_port: Edit { + property = "armatak_module_property_fts_api_instance_port"; + displayname = "FTS Port"; + tooltip = "FreeTAKServer Instance Port"; + typeName = "NUMBER"; + defaultValue = "19023"; + }; + }; + + + + }; + class armatak_module_callsign: Module_F {}; +}; \ No newline at end of file diff --git a/addons/main/config.cpp b/addons/main/config.cpp index 3c32333..17542dd 100644 --- a/addons/main/config.cpp +++ b/addons/main/config.cpp @@ -1,6 +1,6 @@ class CfgPatches { class armatak_main { - units[] = {""}; + units[] = {"armatak_module_core","armatak_module_callsign"}; weapons[] = {""}; author = "ARMATAK Team"; url = "https://github.com/valmojr/armatak"; @@ -13,4 +13,5 @@ class CfgPatches { }; #include "CfgCommands.hpp" -#include "CfgFunctions.hpp" \ No newline at end of file +#include "CfgFunctions.hpp" +#include "CfgVehicles.hpp" \ No newline at end of file