diff --git a/addons/artycomputer_models/$PREFIX$ b/addons/artycomputer_models/$PREFIX$
deleted file mode 100644
index 618f576..0000000
--- a/addons/artycomputer_models/$PREFIX$
+++ /dev/null
@@ -1 +0,0 @@
-x\tun\addons\artycomputer_models
\ No newline at end of file
diff --git a/addons/firesupport/$PREFIX$ b/addons/firesupport/$PREFIX$
deleted file mode 100644
index 9920076..0000000
--- a/addons/firesupport/$PREFIX$
+++ /dev/null
@@ -1 +0,0 @@
-x\tun\addons\firesupport
\ No newline at end of file
diff --git a/addons/firesupport/Convert_dialog.hpp b/addons/firesupport/Convert_dialog.hpp
new file mode 100644
index 0000000..8753a6b
--- /dev/null
+++ b/addons/firesupport/Convert_dialog.hpp
@@ -0,0 +1,78 @@
+//Exported via Arma Dialog Creator (https://github.com/kayler-renslow/arma-dialog-creator)
+
+#include "CustomControlClasses.hpp"
+class tun_firesupport_convertDialog
+{
+ idd = MAINCONVERT_IDD;
+ enableSimulation = false;
+ class ControlsBackground
+ {
+ class tun_firesupport_convert_background
+ {
+ type = 0;
+ idc = -1;
+ x = safeZoneX + safeZoneW * 0.3;
+ y = safeZoneY + safeZoneH * 0.175;
+ w = safeZoneW * 0.4;
+ h = safeZoneH * 0.575;
+ style = 0;
+ text = "";
+ colorBackground[] = GUI_BCG_MENU;
+ colorText[] = {0.2431,0.1725,0.3333,1};
+ font = "PuristaMedium";
+ sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
+ };
+
+ };
+ class Controls
+ {
+ class tun_firesupport_convert_header : tun_firesupport_header_base
+ {
+ x = safeZoneX + safeZoneW * 0.325;
+ y = safeZoneY + safeZoneH * 0.2;
+ w = safeZoneW * 0.35;
+ h = safeZoneH * 0.05;
+ text = "$STR_tun_firesupport_converter_header";
+
+
+ };
+ class tun_firesupport_convert_swtEditBox : tun_default_editBox
+ {
+ idc = SWTDATA;
+ x = safeZoneX + safeZoneW * 0.325;
+ y = safeZoneY + safeZoneH * 0.52777778;
+ w = safeZoneW * 0.35;
+ h = safeZoneH * 0.19722223;
+ text = "$STR_tun_firesupport_converter_swtEditBoxText";
+ style = 16+2;
+ };
+ class tun_firesupport_convert_tunEditBox : tun_firesupport_convert_swtEditBox
+ {
+ idc = TUNDATA;
+ y = safeZoneY + safeZoneH * 0.26851852;
+ text = "$STR_tun_firesupport_converter_firesupportEditBoxText";
+
+ };
+ class tun_firesupport_swt_to_firesupport_button : RscButton
+ {
+ idc = -1;
+ x = safeZoneX + safeZoneW * 0.3625;
+ y = safeZoneY + safeZoneH * 0.47222223;
+ w = safeZoneW * 0.096875;
+ h = safeZoneH * 0.0462963;
+ text = "To Firesupport";
+ onButtonClick = "[false] call tun_firesupport_fnc_convertData";
+ colorBackground[] = GUI_BCG_COLOR;
+ colorBackgroundActive[] = GUI_BCG_COLOR;
+ };
+ class tun_firesupport_firesupport_to_swt_button : tun_firesupport_swt_to_firesupport_button
+ {
+ idc = -1;
+ x = safeZoneX + safeZoneW * 0.540625;
+ text = "To SWT";
+ onButtonClick = "[true] call tun_firesupport_fnc_convertData";
+ };
+
+ };
+
+};
diff --git a/addons/firesupport/CustomControlClasses.hpp b/addons/firesupport/CustomControlClasses.hpp
index 7f206f2..0df6009 100644
--- a/addons/firesupport/CustomControlClasses.hpp
+++ b/addons/firesupport/CustomControlClasses.hpp
@@ -14,23 +14,24 @@ class RscTree;
class RscCombo;
class RscXSliderH;
class RscCheckBox;
+#include "\a3\ui_f\hpp\definecommoncolors.inc"
+#include "\a3\ui_f\hpp\definecommoncolors.inc"
-#define GUI_USER_COLORBACKGROUND { "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])", 1 }
+//#define GUI_BCG_COLOR { "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])", 1 }
class tun_default_editBox : RscEdit
{
autocomplete = "";
borderSize = 0.01;
- colorBorder[] = GUI_USER_COLORBACKGROUND;
+ colorBorder[] = GUI_BCG_COLOR;
colorBackground[] = {0.2,0.2,0.2,0.2};
colorDisabled[] = {0,0,0,0};
- colorSelection[] = GUI_USER_COLORBACKGROUND;
+ colorSelection[] = GUI_BCG_COLOR;
colorText[] = {1,1,1,1};
canModify = true;
shadow = 0;
};
-
class tun_firesupport_coordinate_preset : tun_default_editBox
{
text = "000";
@@ -41,7 +42,7 @@ class tun_firesupport_coordinate_preset : tun_default_editBox
class tun_default_text : RscText
{
- colorBackground[] = GUI_USER_COLORBACKGROUND;
+ colorBackground[] = GUI_BCG_COLOR;
colorText[] = {1,1,1,1};
};
@@ -51,4 +52,13 @@ class tun_default_CheckBox : RscCheckBox
h = safeZoneH * 0.025;
};
+class tun_firesupport_header_base : RscText
+{
+ type = 0;
+ idc = -1;
+ style = 32+2;
+ shadow = 2;
+ colorBackground[] = GUI_BCG_COLOR;
+ colorText[] = GUI_TITLETEXT_COLOR;
+};
#endif
diff --git a/addons/firesupport/Firesupport_dialog.hpp b/addons/firesupport/Firesupport_dialog.hpp
index 344b537..20101a6 100644
--- a/addons/firesupport/Firesupport_dialog.hpp
+++ b/addons/firesupport/Firesupport_dialog.hpp
@@ -107,7 +107,7 @@ class Firesupport_dialog
w = safeZoneW * 0.1421875;
h = safeZoneH * 0.21481482;
borderSize = 0.01;
- colorBorder[] = GUI_USER_COLORBACKGROUND;
+ colorBorder[] = GUI_BCG_COLOR;
colorLines[] = {1,1,1,1};
colorBackground[] = {0.2,0.2,0.2,0.2};
onTreeSelChanged = "[] call tun_firesupport_fnc_setValues";
@@ -129,6 +129,7 @@ class Firesupport_dialog
x = safeZoneX + safeZoneW * 0.378125;
y = safeZoneY + safeZoneH * 0.27870371;
tooltip = "$STR_tun_firesupport_coordinates_tooltip_easting";
+ onKeyUp = "[] call tun_firesupport_fnc_firingPosMarker";
};
class tun_firesupport_easting_text : tun_default_text
@@ -171,6 +172,7 @@ class Firesupport_dialog
x = safeZoneX + safeZoneW * 0.378125;
y = safeZoneY + safeZoneH * 0.34351852;
tooltip = "$STR_tun_firesupport_coordinates_tooltip_easting";
+ onKeyUp = "[] call tun_firesupport_fnc_firingPosMarker; [false] call tun_firesupport_fnc_check_values;";
};
class tun_firesupport_northing_end_point_value : tun_firesupport_easting_end_point_value
@@ -188,7 +190,7 @@ class Firesupport_dialog
y = safeZoneY + safeZoneH * 0.31574075;
text = "$STR_tun_firesupport_northing_end_point";
};
-
+
class tun_firesupport_ammo_count : tun_default_editBox
{
idc = COUNT_IDC;
@@ -282,17 +284,13 @@ class Firesupport_dialog
text = "Value";
tooltip = "$STR_tun_firesupport_eta_tooltip";
};
- class tun_firesupport_header : RscText
+ class tun_firesupport_header : tun_firesupport_header_base
{
- type = 0;
- idc = -1;
x = safeZoneX + safeZoneW * 0.22447917;
y = safeZoneY + safeZoneH * 0.18518519;
w = safeZoneW * 0.55104167;
h = safeZoneH * 0.05;
- style = 32+2;
text = "$STR_tun_firesupport_Header";
- shadow = 2;
};
class tun_firesupport_status : tun_default_text
@@ -423,7 +421,7 @@ class Firesupport_dialog
y = safeZoneY + safeZoneH * 0.27870371;
w = safeZoneW * 0.1375;
h = safeZoneH * 0.02962963;
- //onLBSelChanged = "";
+ onLBSelChanged = "[] call tun_firesupport_fnc_firingPosMarker";
};
class tun_firesupport_trp2_list : tun_firesupport_trp1_list
{
@@ -475,8 +473,14 @@ class Firesupport_dialog
idc = TOGGLEVOLLEY;
x = safeZoneX + safeZoneW * 0.69010417;
y = safeZoneY + safeZoneH * 0.34351852;
- tooltip = "$STR_tun_firesupport_toggleVolleyFire_tooltip";
-
+ tooltip = "$STR_tun_firesupport_toggleVolleyFire_tooltip";
+ };
+
+ class tun_firesupport_toggleMoveMap: tun_firesupport_togglevolleyfire
+ {
+ idc = TOGGLEMAPMOVE;
+ x = safeZoneX + safeZoneW * 0.69010417 + (safeZoneW * 0.015)*2;
+ tooltip = "$STR_tun_firesupport_toggleMoveMap_tooltip";
};
class tun_firesupport_time_text : tun_default_text
@@ -487,16 +491,15 @@ class Firesupport_dialog
w = safeZoneW * 0.09739584;
h = safeZoneH * 0.025;
text = "$STR_tun_firesupport_toggletimetext";
- tooltip = "$STR_tun_firesupport_toggletimetext_tooltip";
-
+ tooltip = "$STR_tun_firesupport_toggletimetext_tooltip";
};
+
class tun_firesupport_queue_list : tun_firesupport_bookmark_list
{
idc = QUEUELIST;
- onLBSelChanged = "";
-
-
+ onLBSelChanged = "";
};
+
class tun_firesupport_queue_remove_button : RscButton
{
type = 1;
@@ -507,10 +510,7 @@ class Firesupport_dialog
h = safeZoneH * 0.05;
text = "$STR_tun_firesupport_queue_remove";
onMouseButtonClick = "[] call tun_firesupport_fnc_removeQueue";
- tooltip = "$STR_tun_firesupport_queue_remove_tooltip";
-
+ tooltip = "$STR_tun_firesupport_queue_remove_tooltip";
};
};
-
-};
-
+};
\ No newline at end of file
diff --git a/addons/firesupport/Firesupport_idc.hpp b/addons/firesupport/Firesupport_idc.hpp
index 19a36b0..a00dc9c 100644
--- a/addons/firesupport/Firesupport_idc.hpp
+++ b/addons/firesupport/Firesupport_idc.hpp
@@ -7,7 +7,7 @@
#define EASTING_END_IDC 22206
#define NORTHING_END_IDC 22207
#define REMAINIG_AMMO_IDC 22208
-#define TRP LIST 22209
+//#define TRP LIST 22209
#define ETA_IDC 22210
#define STATUS_IDC 22211
#define FIRE_IDC 22212
@@ -43,6 +43,9 @@
#define QUEUELIST 22242
#define QUEUEREMOVE 22243
#define TOGGLEVOLLEY 22244
+#define TOGGLEMAPMOVE 22245
-
+#define MAINCONVERT_IDD 22250
+#define SWTDATA 22251
+#define TUNDATA 22252
diff --git a/addons/firesupport/Stringtable.xml b/addons/firesupport/Stringtable.xml
index e3526b4..99b7f6f 100644
--- a/addons/firesupport/Stringtable.xml
+++ b/addons/firesupport/Stringtable.xml
@@ -266,6 +266,30 @@
Remove
Remove
+
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+ Distance
+
+
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+ Direction
+
@@ -508,6 +532,42 @@
Toggle volley fire. All guns will fire same time, othervise they will keep constant barrage going on.
Toggle volley fire. All guns will fire same time, othervise they will keep constant barrage going on.
+
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+ Corrected distance from given coordinates. In meters.
+
+
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+ Correction direction for given coordinates.
+
+
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+ Toggle auto move map to target coordinates
+
@@ -582,6 +642,114 @@
Debug mode
Debug mode
+
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+ Show marker on firing pos
+
+
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+ If enabled, there will be marker where you are calling firesupport in firesupport interface.
+
+
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+ Always show TRP markers
+
+
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+ Enable TRP markers
+
+
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+ If enabled, TRP markers are always shown in map, not only when interface is opened.
+
+
+
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+ TRP marker type
+
+
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+ mil_destroy_noShadow
+
+
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+ classname for marker used in TRPs
+
@@ -1205,5 +1373,81 @@
Add queue
+
+
+
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+ Put sweet marker array here
+
+
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+ Put firesupport array here
+
+
+
+
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+ Tun - Firesupport
+
+
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+ Convert TRP/SWT
+
+
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+ <font size=20><execute expression=' [] call tun_firesupport_fnc_openConvertDialog'>Open convert dialog</execute></font>
+
+
\ No newline at end of file
diff --git a/addons/firesupport/XEH_postInit.sqf b/addons/firesupport/XEH_postInit.sqf
index 84f2529..eee7d56 100644
--- a/addons/firesupport/XEH_postInit.sqf
+++ b/addons/firesupport/XEH_postInit.sqf
@@ -1 +1,5 @@
-#include "script_component.hpp"
\ No newline at end of file
+#include "script_component.hpp"
+
+if (hasInterface) then {
+ [] call FUNC(createConvertDiaryEntry);
+};
\ No newline at end of file
diff --git a/addons/firesupport/XEH_preInit.sqf b/addons/firesupport/XEH_preInit.sqf
index cbe7523..fa206c5 100644
--- a/addons/firesupport/XEH_preInit.sqf
+++ b/addons/firesupport/XEH_preInit.sqf
@@ -12,6 +12,11 @@ ISNILS(GVAR(soundOBJ),objNull);
ISNILS(GVAR(playingSounds),false);
ISNILS(GVAR(bookmarkOpen),false);
ISNILS(GVAR(BookmarkSkip),false);
+GVAR(firingPosMarkerStart) = ["",""];
+GVAR(firingPosMarkerEnd) = "";
+GVAR(firingPosMarkerArea) = ["",""];
+GVAR(trpMarkers) = [];
+
//Main settings
[
@@ -25,6 +30,49 @@ ISNILS(GVAR(BookmarkSkip),false);
true //Setting will be marked as needing mission restart after being changed. (optional, default false)
] call CBA_Settings_fnc_init;
+[
+ QGVAR(enableFiringPosMarker), // Unique setting name. Matches resulting variable name
+ "CHECKBOX", // Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR"
+ [localize "STR_tun_firesupport_cba_firePosMarker", localize "STR_tun_firesupport_cba_firePosMarker_tooltip"], // Display name or display name + tooltip (optional, default: same as setting name)
+ localize "STR_tun_firesupport_cba_Category_main", // Category for the settings menu + optional sub-category
+ true, // Extra properties of the setting depending of _settingType.
+ 0, // 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0)
+ {}, // Script to execute when setting is changed. (optional)
+ true //Setting will be marked as needing mission restart after being changed. (optional, default false)
+] call CBA_Settings_fnc_init;
+
+[
+ QGVAR(enableShowTRPmarkers), // Unique setting name. Matches resulting variable name
+ "CHECKBOX", // Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR"
+ [localize "STR_tun_firesupport_cba_enableShowTRPmarkers", localize "STR_tun_firesupport_cba_enableShowTRPmarkers_tooltip"], // Display name or display name + tooltip (optional, default: same as setting name)
+ localize "STR_tun_firesupport_cba_Category_main", // Category for the settings menu + optional sub-category
+ true, // Extra properties of the setting depending of _settingType.
+ 0, // 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0)
+ {}, // Script to execute when setting is changed. (optional)
+ true //Setting will be marked as needing mission restart after being changed. (optional, default false)
+] call CBA_Settings_fnc_init;
+
+[
+ QGVAR(alwaysShowTRPmarkers), // Unique setting name. Matches resulting variable name
+ "CHECKBOX", // Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR"
+ [localize "STR_tun_firesupport_cba_alwaysShowTRPmarkers", localize "STR_tun_firesupport_cba_alwaysShowTRPmarkers_tooltip"], // Display name or display name + tooltip (optional, default: same as setting name)
+ localize "STR_tun_firesupport_cba_Category_main", // Category for the settings menu + optional sub-category
+ true, // Extra properties of the setting depending of _settingType.
+ 1, // 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0)
+ {}, // Script to execute when setting is changed. (optional)
+ true //Setting will be marked as needing mission restart after being changed. (optional, default false)
+] call CBA_Settings_fnc_init;
+
+[
+ QGVAR(trpMarkerType), // Unique setting name. Matches resulting variable name
+ "EDITBOX", // Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR"
+ [localize "STR_tun_firesupport_cba_trpMarkerType", localize "STR_tun_firesupport_cba_alwaysShowTRPmarkers_tooltip"], // Display name or display name + tooltip (optional, default: same as setting name)
+ localize "STR_tun_firesupport_cba_Category_main", // Category for the settings menu + optional sub-category
+ [localize "STR_tun_firesupport_cba_trpMarkerType_value"], // Extra properties of the setting depending of _settingType.
+ 0, // 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0)
+ {}, // Script to execute when setting is changed. (optional)
+ true //Setting will be marked as needing mission restart after being changed. (optional, default false)
+] call CBA_Settings_fnc_init;
[
QGVAR(debug), // Unique setting name. Matches resulting variable name
diff --git a/addons/firesupport/XEH_prep.sqf b/addons/firesupport/XEH_prep.sqf
index 1cb320f..890fe01 100644
--- a/addons/firesupport/XEH_prep.sqf
+++ b/addons/firesupport/XEH_prep.sqf
@@ -28,4 +28,11 @@ PREP(removeQueue);
PREP(firemission_creepingBarrage);
PREP(firemission_wall);
PREP(playSound);
+PREP(firingPosMarker);
+PREP(getTargetPositon);
+PREP(createTRPmarkers);
+PREP(deleteTRPmarkers);
+PREP(convertData);
+PREP(createConvertDiaryEntry);
+PREP(openConvertDialog);
diff --git a/addons/firesupport/config.cpp b/addons/firesupport/config.cpp
index ab838cc..22512a0 100644
--- a/addons/firesupport/config.cpp
+++ b/addons/firesupport/config.cpp
@@ -7,12 +7,13 @@ class CfgPatches
units[] = { QGVAR(gun_classname) };
weapons[] = {};
requiredVersion = 1.94;
- requiredAddons[] = {"A3_Modules_F","3DEN","cba_main","cba_xeh","cba_settings","ace_common","ace_interaction","ace_interact_menu"};
+ requiredAddons[] = {"A3_Modules_F","3DEN","cba_main","cba_xeh","cba_settings","ace_common","ace_interaction","ace_interact_menu","ace_modules"};
author = "Tuntematon";
authorUrl = "https://armafinland.fi/";
};
};
+#include "Convert_dialog.hpp"
#include "Firesupport_dialog.hpp"
#include "CfgSounds.hpp"
diff --git a/addons/firesupport/functions/fnc_calculate_eta.sqf b/addons/firesupport/functions/fnc_calculate_eta.sqf
index 676bed9..1e14568 100644
--- a/addons/firesupport/functions/fnc_calculate_eta.sqf
+++ b/addons/firesupport/functions/fnc_calculate_eta.sqf
@@ -20,28 +20,17 @@ private _northing = ctrlText NORTHING_IDC;
private _etaText = "NONE";
private _etaNumber = -1;
private _minEta = -1;
+private _trp1Toggle = cbChecked (findDisplay MAIN_IDD displayCtrl TRP1);
+private _trp1Index = lbCurSel TRP1_LIST;
-if ( count _listArray isEqualTo 2 ) then {
+if ( count _listArray isEqualTo 2) then {
private _gunModule = (tvData [ARTY_LIST_IDC, [(_listArray select 0)]]) call BIS_fnc_objectFromNetId;
private _ammoModule = (tvData [ARTY_LIST_IDC, _listArray]) call BIS_fnc_objectFromNetId;
private _magazineClass = _ammoModule getVariable "Ammo";
private _initSpeed = getNumber (configfile >> "CfgMagazines" >> _magazineClass >> "initSpeed");
- private _trp1Toggle = cbChecked (findDisplay MAIN_IDD displayCtrl TRP1);
- private _trp1Index = lbCurSel TRP1_LIST;
- if (_trp1Toggle) then {
- if (_trp1Index != -1 && (count GVAR(trpValues)) isNotEqualTo 0) then {
- private _trp1Values = GVAR(trpValues) select _trp1Index;
- _easting = _trp1Values select 1;
- _northing = _trp1Values select 2;
- } else {
- _easting = "000";
- _northing = "000";
- };
- };
-
- private _pos = [[_easting, _northing], true] call CBA_fnc_mapGridToPos;
+ private _pos = ([] call FUNC(getTargetPositon)) select 0;
private _countdown = _gunModule getVariable ["countDown", 60];
private _distance = _gunModule distance _pos;
private _minRange= _gunModule getVariable ["minRange", 0];
@@ -91,7 +80,7 @@ if ( count _listArray isEqualTo 2 ) then {
_etaText = "Out of Ammo";
};
- if (_trp1Index == -1 && _trp1Toggle) then {
+ if (_trp1Index isEqualTo -1 && _trp1Toggle) then {
_etaText = "No TRP selected";
};
};
diff --git a/addons/firesupport/functions/fnc_check_values.sqf b/addons/firesupport/functions/fnc_check_values.sqf
index 4e58f40..f281cf8 100644
--- a/addons/firesupport/functions/fnc_check_values.sqf
+++ b/addons/firesupport/functions/fnc_check_values.sqf
@@ -20,15 +20,41 @@
params [["_updateSlider",false]];
+private _firingStyle = lbText [FIRING_TYPE_IDC,lbCurSel FIRING_TYPE_IDC];
+
+if (_firingStyle isEqualTo (localize "STR_tun_firesupport_firemode_standard")) then {
+ //private _distance = ctrlText EASTING_END_IDC;
+ private _direction = ctrlText NORTHING_END_IDC;
+ private _directionParset = parseNumber _direction;
+ ctrlSetText [NORTHING_END_IDC, str _directionParset];
+
+ if (_directionParset < 0) then {
+ ctrlSetText [NORTHING_END_IDC, "0"];
+ };
+
+ if (count _direction > 3) then {
+ ctrlSetText [NORTHING_END_IDC, _direction select [0,3]];
+ };
+
+ if (_directionParset isEqualTo 360) then {
+ ctrlSetText [NORTHING_END_IDC, "0"];
+ };
+
+ if (_directionParset > 359 && _directionParset isNotEqualTo 360) then {
+ ctrlSetText [NORTHING_END_IDC, "359"];
+ };
+
+};
+
private _listArray = tvCurSel ARTY_LIST_IDC;
if (count _listArray isNotEqualTo 2) exitWith { };
private _gunModule = (tvData [ARTY_LIST_IDC, [(_listArray select 0)]]) call BIS_fnc_objectFromNetId;
private _ammoModule = (tvData [ARTY_LIST_IDC, _listArray]) call BIS_fnc_objectFromNetId;
-private _min_spread = _gunModule getVariable ["spreadMin", 50];
-private _max_spread = _gunModule getVariable ["spreadMax", 500];
-private _min_delay = _gunModule getVariable ["delayMin", 1];
-private _max_delay = _gunModule getVariable ["delayMax", 60];
+private _minSpread = _gunModule getVariable ["spreadMin", 50];
+private _maxSpread = _gunModule getVariable ["spreadMax", 500];
+private _mindelay = _gunModule getVariable ["delayMin", 1];
+private _maxdelay = _gunModule getVariable ["delayMax", 60];
private _currentAmmoCount = _ammoModule getVariable ["currentCount", 0];
private _ammoValue = -1;
private _radiusValue = -1;
@@ -52,20 +78,20 @@ if (_ammoValue < 0) then {
_ammoValue = 0;
};
-if (_radiusValue > _max_spread) then {
- _radiusValue = _max_spread;
+if (_radiusValue > _maxSpread) then {
+ _radiusValue = _maxSpread;
};
-if (_radiusValue < _min_spread) then {
- _radiusValue = _min_spread;
+if (_radiusValue < _minSpread) then {
+ _radiusValue = _minSpread;
};
-if (_delayValue > _max_delay) then {
- _delayValue = _max_delay;
+if (_delayValue > _maxdelay) then {
+ _delayValue = _maxdelay;
};
-if (_delayValue < _min_delay || 0.5 > _delayValue) then {
- _delayValue = _min_delay;
+if (_delayValue < _mindelay || 0.5 > _delayValue) then {
+ _delayValue = _mindelay;
};
sliderSetPosition [SLIDER_AMMO, _ammoValue];
@@ -75,3 +101,7 @@ sliderSetPosition [SLIDER_DELAY, _delayValue];
ctrlSetText [COUNT_IDC, str _ammoValue];
ctrlSetText [RANGE_IDC, str _radiusValue];
ctrlSetText [DELAY_IDC, str _delayValue];
+
+[] call FUNC(firingPosMarker);
+
+
diff --git a/addons/firesupport/functions/fnc_convertData.sqf b/addons/firesupport/functions/fnc_convertData.sqf
new file mode 100644
index 0000000..1c5c5ba
--- /dev/null
+++ b/addons/firesupport/functions/fnc_convertData.sqf
@@ -0,0 +1,61 @@
+/*
+ * Author: [Tuntematon]
+ * [Description]
+ *
+ * Arguments:
+ * 0: The first argument
+ * 1: The second argument