mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 14:13:29 +00:00
Moved dialog window for TCP Socket connection startup to server addon
This commit is contained in:
@@ -4,14 +4,15 @@ class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {
|
||||
QGVAR(coreModule)
|
||||
QGVAR(coreModule),
|
||||
QGVAR(coreModuleCurator)
|
||||
};
|
||||
weapons[] = {};
|
||||
requiredAddons[] = {
|
||||
"cba_main",
|
||||
"ace_main",
|
||||
"armatak_main"
|
||||
};
|
||||
"cba_main",
|
||||
"ace_main",
|
||||
"armatak_main"
|
||||
};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
author = PROJECT_AUTHOR;
|
||||
url = "https://github.com/valmojr/armatak";
|
||||
@@ -19,92 +20,5 @@ class CfgPatches {
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
||||
class CfgVehicles {
|
||||
class Logic;
|
||||
class Module_F : Logic
|
||||
{
|
||||
class AttributesBase
|
||||
{
|
||||
class Default;
|
||||
class Edit;
|
||||
class Combo;
|
||||
class Checkbox;
|
||||
class CheckboxNumber;
|
||||
class ModuleDescription;
|
||||
class Units;
|
||||
};
|
||||
|
||||
class ModuleDescription
|
||||
{
|
||||
class AnyBrain;
|
||||
};
|
||||
};
|
||||
|
||||
class GVAR(coreModule): Module_F {
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
displayname = "ARMATAK CoT Router";
|
||||
icon = "\a3\Modules_F_Curator\Data\iconRadio_ca.paa";
|
||||
category = QEGVAR(main,moduleCategory);
|
||||
function = QFUNC(3denCoreModuleConfig);
|
||||
functionPriority = 1;
|
||||
isGlobal = 0;
|
||||
isTriggerActivated = 1;
|
||||
isDisposable = 1;
|
||||
is3den = 0;
|
||||
curatorCanAttach = 0;
|
||||
curatorInfoType = "armatak_zeus_core_module_dialog";
|
||||
|
||||
canSetArea = 0;
|
||||
canSetAreaShape = 0;
|
||||
canSetAreaHeight = 0;
|
||||
|
||||
class AttributesValues {
|
||||
size3[] = { 1, 1, -1 };
|
||||
isRectangle = 0;
|
||||
};
|
||||
|
||||
class Attributes: AttributesBase {
|
||||
class GVAR(moduleInstanceAddress): Edit {
|
||||
property = QGVAR(moduleInstanceAddress);
|
||||
displayname = "TAK Server Address";
|
||||
tooltip = "TAK Server Instance Address";
|
||||
typeName = "STRING";
|
||||
defaultValue = "localhost";
|
||||
};
|
||||
class GVAR(moduleInstancePort): Edit {
|
||||
property = QGVAR(moduleInstancePort);
|
||||
displayname = "TAK Server TCP Port";
|
||||
tooltip = "TAK Server instance Port for TCP connection";
|
||||
typeName = "NUMBER";
|
||||
defaultValue = "8088";
|
||||
};
|
||||
class ModuleDescription: ModuleDescription {};
|
||||
};
|
||||
|
||||
class ModuleDescription: ModuleDescription {
|
||||
description = "Generate the initial ARMATAK configuration, syncronizing all players to the TAK server instance";
|
||||
sync[] = {"LocationArea_F"};
|
||||
|
||||
class LocationArea_F {
|
||||
description[] = {
|
||||
"This module will synchronize all",
|
||||
"players to the TAK server instance"
|
||||
};
|
||||
position = 1;
|
||||
direction = 1;
|
||||
optional = 1;
|
||||
duplicate = 1;
|
||||
synced[] = { "BluforUnit", "AnyBrain" };
|
||||
};
|
||||
class BluforUnit
|
||||
{
|
||||
description = "Short description";
|
||||
displayName = "Any BLUFOR unit";
|
||||
icon = "iconMan";
|
||||
side = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
#include "dialog.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
110
addons/server/dialog.hpp
Normal file
110
addons/server/dialog.hpp
Normal file
@@ -0,0 +1,110 @@
|
||||
class RscObject;
|
||||
class RscText;
|
||||
class RscFrame;
|
||||
class RscLine;
|
||||
class RscProgress;
|
||||
class RscPicture;
|
||||
class RscPictureKeepAspect;
|
||||
class RscVideo;
|
||||
class RscHTML;
|
||||
class RscButton;
|
||||
class RscShortcutButton;
|
||||
class RscEdit;
|
||||
class RscCombo;
|
||||
class RscListBox;
|
||||
class RscListNBox;
|
||||
class RscXListBox;
|
||||
class RscTree;
|
||||
class RscSlider;
|
||||
class RscXSliderH;
|
||||
class RscActiveText;
|
||||
class RscActivePicture;
|
||||
class RscActivePictureKeepAspect;
|
||||
class RscStructuredText;
|
||||
class RscToolbox;
|
||||
class RscControlsGroup;
|
||||
class RscControlsGroupNoScrollbars;
|
||||
class RscControlsGroupNoHScrollbars;
|
||||
class RscControlsGroupNoVScrollbars;
|
||||
class RscButtonTextOnly;
|
||||
class RscButtonMenu;
|
||||
class RscButtonMenuOK;
|
||||
class RscButtonMenuCancel;
|
||||
class RscButtonMenuSteam;
|
||||
class RscMapControl;
|
||||
class RscMapControlEmpty;
|
||||
class RscCheckBox;
|
||||
|
||||
class armatak_zeus_core_module_dialog {
|
||||
idd = 999991;
|
||||
movingEnable = 0;
|
||||
class controls {
|
||||
class armatak_gui_module_zeus_core_dialog_main_frame: RscPicture
|
||||
{
|
||||
idc = 1200;
|
||||
text = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
x = "0.386562 * safezoneW + safezoneX";
|
||||
y = "0.346 * safezoneH + safezoneY";
|
||||
w = "0.237187 * safezoneW";
|
||||
h = "0.275 * safezoneH";
|
||||
colorBackground[] = {0,0,0,1};
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_text: RscText
|
||||
{
|
||||
idc = 1000;
|
||||
text = "TAK Server Address";
|
||||
x = "0.402031 * safezoneW + safezoneX";
|
||||
y = "0.368 * safezoneH + safezoneY";
|
||||
w = "0.216563 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_port_text: RscText
|
||||
{
|
||||
idc = 1001;
|
||||
text = "TAK Server Port";
|
||||
x = "0.402031 * safezoneW + safezoneX";
|
||||
y = "0.445 * safezoneH + safezoneY";
|
||||
w = "0.216563 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_edit: RscEdit
|
||||
{
|
||||
idc = 14000;
|
||||
text = "localhost";
|
||||
x = "0.396875 * safezoneW + safezoneX";
|
||||
y = "0.401 * safezoneH + safezoneY";
|
||||
w = "0.216563 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
tooltip = "Address without protocol prefix of the TAK Server (localhost, 192.168.1.1, etcetera...)";
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_port_edit: RscEdit
|
||||
{
|
||||
idc = 14001;
|
||||
text = "8088";
|
||||
x = "0.396875 * safezoneW + safezoneX";
|
||||
y = "0.489 * safezoneH + safezoneY";
|
||||
w = "0.216563 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_button_ok: RscButton
|
||||
{
|
||||
idc = 1600;
|
||||
text = "OK";
|
||||
action = QUOTE(call FUNC(zeusCoreModuleConfig));
|
||||
x = "0.5 * safezoneW + safezoneX";
|
||||
y = "0.555 * safezoneH + safezoneY";
|
||||
w = "0.0515625 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
};
|
||||
class armatak_gui_module_zeus_core_dialog_address_button_cancel: RscButton
|
||||
{
|
||||
idc = 1601;
|
||||
text = "Cancel";
|
||||
action = "closeDialog 2;";
|
||||
x = "0.561875 * safezoneW + safezoneX";
|
||||
y = "0.555 * safezoneH + safezoneY";
|
||||
w = "0.0515625 * safezoneW";
|
||||
h = "0.044 * safezoneH";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user