added initial 3den editor module config

This commit is contained in:
Valmo Trindade
2024-07-26 03:03:40 -03:00
parent b7ffb71250
commit 5c75f141af
2 changed files with 81 additions and 2 deletions

View File

@@ -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 {};
};

View File

@@ -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"
#include "CfgFunctions.hpp"
#include "CfgVehicles.hpp"