mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 01:23:30 +00:00
added initial 3den editor module config
This commit is contained in:
78
addons/main/CfgVehicles.hpp
Normal file
78
addons/main/CfgVehicles.hpp
Normal 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 {};
|
||||||
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
class CfgPatches {
|
class CfgPatches {
|
||||||
class armatak_main {
|
class armatak_main {
|
||||||
units[] = {""};
|
units[] = {"armatak_module_core","armatak_module_callsign"};
|
||||||
weapons[] = {""};
|
weapons[] = {""};
|
||||||
author = "ARMATAK Team";
|
author = "ARMATAK Team";
|
||||||
url = "https://github.com/valmojr/armatak";
|
url = "https://github.com/valmojr/armatak";
|
||||||
@@ -13,4 +13,5 @@ class CfgPatches {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "CfgCommands.hpp"
|
#include "CfgCommands.hpp"
|
||||||
#include "CfgFunctions.hpp"
|
#include "CfgFunctions.hpp"
|
||||||
|
#include "CfgVehicles.hpp"
|
||||||
Reference in New Issue
Block a user