This commit is contained in:
PabstMirror 2015-03-11 02:06:07 -05:00
parent d6e7775cac
commit 95d59a1b3a
20 changed files with 150 additions and 161 deletions

View File

@ -36,6 +36,7 @@ if (!hasInterface) exitWith {};
["RangerfinderData", {_this call FUNC(recieveRangefinderData)}] call EFUNC(common,addEventHandler);
//Global Variables to default:
GVAR(gpsPositionASL) = [0,0,0];
GVAR(mapAutoTrackPosition) = true;
GVAR(mapShowTexture) = false;
GVAR(mapPosition) = [-999, -999];

View File

@ -1,22 +1,21 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles the keypad entries from the "Mark" Application
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: String version of Keypad entry ["ok","del","1",...] <STRING>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* ["ok"] call ace_microdagr_fnc_appMarkKeypadEntry
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_display", "_editText", "_gridPosTuple", "_actualPos"];
PARAMS_1(_keypadButton);
disableSerialization;

View File

@ -1,19 +1,17 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles the "Connect To" button from the menu application
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_appMenuButtonConnectRangefinder
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,23 +1,23 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles double clicking on the setting listbox
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: Setting List box (not used) <CONTROL>
* 1: Index <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [settingList, 1] call ace_microdagr_fnc_appSettingsLBClick
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
_itemClicked = _this select 1;
disableSerialization;
PARAMS_2(_control,_itemClicked);
switch (_itemClicked) do {
case (0): { GVAR(settingUseMils) = ! GVAR(settingUseMils)};

View File

@ -1,22 +1,22 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles clicking the delete button from the waypoint application
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_appWaypointsButtonDeleteWP
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_display", "_wpIndex"];
disableSerialization;
_display = displayNull;
if (GVAR(currentShowMode) == DISPLAY_MODE_DIALOG) then {

View File

@ -1,29 +1,29 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles clicking the setWP button from the waypoint application
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* The "SetWP" button <CONTROL>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_appWaypointsButtonSetWP
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_wpListBox", "_newWpIndex", "_waypoints"];
disableSerialization;
_wpButton = _this select 0;
PARAMS_1(_wpButton);
_wpListBox = (ctrlParent _wpButton) displayCtrl 144501;
_newWpIndex = lbCurSel _wpListBox;
_waypoints = [] call FUNC(deviceGetWaypoints);
if ((_newWpIndex < 0) || (_newWpIndex > ((count _waypoints) - 1))) exitWith {
GVAR(currentWaypoint) = -1;
ERROR("out of bounds wp");

View File

@ -1,19 +1,17 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Tests if the dagr can be shown in a mode
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* The display mode to test showing <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_canShow
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,19 +1,19 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Adds a waypoint to the "device"
* Device saving not implemented yet, just save to player object
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: Waypoint name <STRING>
* 1: Waypoint Position ASL <ARRAY>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* ["Hill 55", [41,324, 12]] call ace_microdagr_fnc_deviceAddWaypoint
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,19 +1,18 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Deletes a waypoint from the "device"
* Device saving not implemented yet, just save to player object
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: Waypoint Index <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* ["Hill 55", [41,324, 12]] call ace_microdagr_fnc_deviceDeleteWaypoint
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,19 +1,18 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Gets all waypoints from the "device"
* Device saving not implemented yet, just save to player object
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Waypoints <ARRAY>
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [["Hill 55", [41,324, 12]]] = [] call ace_microdagr_fnc_deviceGetWaypoint
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,19 +1,17 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles the dialog closeing, switches back to display mode
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_dialogClosedEH
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"

View File

@ -1,23 +1,26 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles the double tapping either of the 2 mini-maps
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: The Map <CONTROL>
* 1: MouseButton <NUMBER>
* 2: MousePosX <NUMBER>
* 3: MousePosY <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [minimap,0,0.5,0.5] call ace_microdagr_fnc_mapOnDrawEH
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
PARAMS_4(_theMap,_mouseButton,_xPos,_yPos);
//Only handle LMB
if (_mouseButton != 0) exitWith {};
_worldPos = _theMap ctrlMapScreenToWorld [_xPos, _yPos];

View File

@ -1,22 +1,22 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Handles the draw event from all 3 maps (compass + 2 minimaps)
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: The Map <CONTROL>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [compassMap] call ace_microdagr_fnc_mapOnDrawEH
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
PARAMS_1(_theMap);
_theMap = _this select 0;
_mapSize = (ctrlPosition _theMap) select 3;

View File

@ -3,21 +3,19 @@
* Takes some arguments and returns something or other.
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: String of the map button pressed <STRING>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* ["autotrack"] call ace_microdagr_fnc_modeMapButtons
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
_mode = _this select 0;
PARAMS_1(_mode);
[-1] call FUNC(saveCurrentAndSetNewMode); //backup current draw pos/zoom

View File

@ -1,17 +1,17 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Function for the module (handles the map fill level)
*
* Arguments:
* 0:logic <OBJECT>
* 0: logic <OBJECT>
* 1: synced units-not used <ARRAY>
* 2: Module Activated <BOOL>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [module, [], true] call ace_microdagr_fnc_moduleMapFill
*
* Public: No
*/

View File

@ -1,22 +1,22 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Changes the display mode of the microDAGR
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: Display Mode to show the microDAGR in <NUMBER><OPTIONAL>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [1] call ace_microdagr_fnc_openDisplay
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_oldShowMode", "_args", "_pfID", "_player"];
DEFAULT_PARAM(0,_newDisplayShowMode,-1);
_oldShowMode = GVAR(currentShowMode);
@ -30,8 +30,6 @@ if ((_newDisplayShowMode == DISPLAY_MODE_DIALOG) && {!([DISPLAY_MODE_DIALOG] cal
GVAR(currentShowMode) = _newDisplayShowMode;
disableSerialization;
//On first-startup
if (GVAR(currentApplicationPage) == APP_MODE_NULL) then {
GVAR(currentApplicationPage) = APP_MODE_INFODISPLAY;
@ -39,13 +37,13 @@ if (GVAR(currentApplicationPage) == APP_MODE_NULL) then {
};
if (GVAR(currentShowMode) in [DISPLAY_MODE_CLOSED, DISPLAY_MODE_HIDDEN]) then {
//If Dialog is open, back it up before closing:
if (dialog && {!isNull (uiNamespace getVariable [QGVAR(DialogDisplay), displayNull])}) then {
[-1] call FUNC(saveCurrentAndSetNewMode);
closeDialog 0;
};
//Close the display:
(QGVAR(TheRscTitleDisplay) call BIS_fnc_rscLayer) cutText ["", "PLAIN"];
} else {
@ -69,9 +67,8 @@ if (GVAR(currentShowMode) in [DISPLAY_MODE_CLOSED, DISPLAY_MODE_HIDDEN]) then {
if ((_oldShowMode == DISPLAY_MODE_CLOSED) && {GVAR(currentShowMode) != DISPLAY_MODE_CLOSED}) then {
//Start a pfeh to update display and handle hiding display
[{
disableSerialization;
PARAMS_2(_args,_pfID);
EXPLODE_1_PVT(_args,_player);
@ -79,7 +76,7 @@ if ((_oldShowMode == DISPLAY_MODE_CLOSED) && {GVAR(currentShowMode) != DISPLAY_M
GVAR(currentShowMode) = DISPLAY_MODE_CLOSED;
[_pfID] call CBA_fnc_removePerFrameHandler;
} else {
GVAR(gpsPositionASL) = getPosAsl player;
GVAR(gpsPositionASL) = getPosAsl ace_player;
if (GVAR(currentShowMode) == DISPLAY_MODE_HIDDEN) then {
if ([DISPLAY_MODE_DISPLAY] call FUNC(canShow)) then {

View File

@ -1,22 +1,24 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Recieves the data packet from the vector rangefinder
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: Slope distance (Meters) <NUMBER>
* 1: Azimuth (Degrees) <NUMBER>
* 2: Inclination (Degrees) <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [1000, 45, 1] call ace_microdagr_fnc_recieveRangefinderData
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_horizontalDistance", "_verticleDistance", "_targetOffset", "_targetPosASL"];
PARAMS_3(_slopeDistance,_azimuth,_inclination);
if (GVAR(currentWaypoint) != -2) exitWith {}; //Only take waypoint when "connected"

View File

@ -1,24 +1,24 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Saves the current mode and sets a new mode
* Used to backup display when switching display modes
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* 0: New Mode <NUMBER>
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [2] call ace_microdagr_fnc_saveCurrentAndSetNewMode
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_display", "_theMap", "_mapSize", "_centerPos"];
PARAMS_1(_newMode);
systemChat format ["Switching App To %1", _newMode];
disableSerialization;
_display = displayNull;
@ -31,9 +31,9 @@ if (isNull _display) exitWith {ERROR("No Display");};
if (GVAR(currentApplicationPage) == 2) then {
_theMap = if (!GVAR(mapShowTexture)) then {_display displayCtrl IDC_MAPPLAIN} else {_display displayCtrl IDC_MAPDETAILS};
_pos = ctrlPosition _theMap;
_mapSize = _pos select 3;
_centerPos = [((_pos select 0) + (_pos select 2) / 2), ((_pos select 1) + (_pos select 3) / 2)];
_mapCtrlPos = ctrlPosition _theMap;
_mapSize = _mapCtrlPos select 3;
_centerPos = [((_mapCtrlPos select 0) + (_mapCtrlPos select 2) / 2), ((_mapCtrlPos select 1) + (_mapCtrlPos select 3) / 2)];
GVAR(mapPosition) = _theMap ctrlMapScreenToWorld _centerPos;
GVAR(mapZoom) = (ctrlMapScale _theMap) * _mapSize;
@ -60,4 +60,3 @@ if (_newMode != -1) then {
GVAR(currentApplicationPage) = _newMode;
[] call FUNC(showApplicationPage);
};

View File

@ -1,22 +1,22 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Changes the "application page" shown on the microDAGR
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_showApplicationPage
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_display", "_daylight", "_theMap", "_mapSize"];
disableSerialization;
_display = displayNull;
@ -35,9 +35,9 @@ _daylight = (1 - cos (daytime * 360/24)) / 2;
(_display displayCtrl IDC_RANGEFINDERCONNECTEDICON) ctrlShow (GVAR(currentWaypoint) == -2);
//Mode: Info:
(_display displayCtrl IDC_MODEDISPLAY) ctrlShow (GVAR(currentApplicationPage) == 0);
(_display displayCtrl IDC_MODEDISPLAY) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY);
if (GVAR(currentApplicationPage) == 0) then {
if (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY) then {
(_display displayCtrl IDC_MODEDISPLAY_UTMGRID) ctrlSetText GVAR(mgrsGridZoneDesignator);
if (GVAR(currentWaypoint) == -1) then {
(_display displayCtrl IDC_MODEDISPLAY_MODEPOSTIMECG) ctrlShow true;
@ -54,19 +54,19 @@ if (GVAR(currentApplicationPage) == 0) then {
};
//Mode: Compass:
(_display displayCtrl IDC_MODECOMPASS) ctrlShow (GVAR(currentApplicationPage) == 1);
(_display displayCtrl IDC_MAPCOMPASS) ctrlShow (GVAR(currentApplicationPage) == 1);
(_display displayCtrl IDC_MODECOMPASS) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_COMPASS);
(_display displayCtrl IDC_MAPCOMPASS) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_COMPASS);
//Mode: Map
(_display displayCtrl IDC_MODEMAP_MAPTRACKBUTTON) ctrlShow (GVAR(currentApplicationPage) == 2);
(_display displayCtrl IDC_MODEMAP_MAPZOOMIN) ctrlShow (GVAR(currentApplicationPage) == 2);
(_display displayCtrl IDC_MODEMAP_MAPZOOMOUT) ctrlShow (GVAR(currentApplicationPage) == 2);
(_display displayCtrl IDC_MODEMAP_MAPTRACKBUTTON) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_MAP);
(_display displayCtrl IDC_MODEMAP_MAPZOOMIN) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_MAP);
(_display displayCtrl IDC_MODEMAP_MAPZOOMOUT) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_MAP);
(_display displayCtrl IDC_MAPPLAIN) ctrlShow ((GVAR(currentApplicationPage) == 2) && {!GVAR(mapShowTexture)});
(_display displayCtrl IDC_MAPDETAILS) ctrlShow ((GVAR(currentApplicationPage) == 2) && {GVAR(mapShowTexture)});
(_display displayCtrl IDC_MAPPLAIN) ctrlShow ((GVAR(currentApplicationPage) == APP_MODE_MAP) && {!GVAR(mapShowTexture)});
(_display displayCtrl IDC_MAPDETAILS) ctrlShow ((GVAR(currentApplicationPage) == APP_MODE_MAP) && {GVAR(mapShowTexture)});
if (GVAR(currentApplicationPage) == 2) then {
if (GVAR(currentApplicationPage) == APP_MODE_MAP) then {
_theMap = if (!GVAR(mapShowTexture)) then {_display displayCtrl IDC_MAPPLAIN} else {_display displayCtrl IDC_MAPDETAILS};
_mapSize = (ctrlPosition _theMap) select 3;
_theMap ctrlMapAnimAdd [0, (GVAR(mapZoom) / _mapSize), GVAR(mapPosition)];
@ -79,7 +79,7 @@ if (GVAR(currentApplicationPage) == 2) then {
};
//Mode: Menu
(_display displayCtrl IDC_MODEMENU) ctrlShow (GVAR(currentApplicationPage) == 3);
(_display displayCtrl IDC_MODEMENU) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_MENU);
//Mode: Mark
if (GVAR(currentApplicationPage) == APP_MODE_MARK) then {
@ -106,19 +106,18 @@ if (GVAR(currentApplicationPage) == APP_MODE_MARK) then {
//Mode: Setting
(_display displayCtrl IDC_MODESETTINGS) ctrlShow (GVAR(currentApplicationPage) == APP_MODE_SETUP);
//Button's pushed:
if (GVAR(currentApplicationPage) == 0) then {
if (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY) then {
(_display displayCtrl IDC_BUTTONBG0) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
} else {
(_display displayCtrl IDC_BUTTONBG0) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));
};
if (GVAR(currentApplicationPage) == 1) then {
if (GVAR(currentApplicationPage) == APP_MODE_COMPASS) then {
(_display displayCtrl IDC_BUTTONBG1) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
} else {
(_display displayCtrl IDC_BUTTONBG1) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));
};
if (GVAR(currentApplicationPage) == 2) then {
if (GVAR(currentApplicationPage) == APP_MODE_MAP) then {
(_display displayCtrl IDC_BUTTONBG2) ctrlSetText QUOTE(PATHTOF(images\button_pushedDown.paa));
} else {
(_display displayCtrl IDC_BUTTONBG2) ctrlSetText QUOTE(PATHTOF(images\button_pushedUp.paa));

View File

@ -1,22 +1,22 @@
/*
* Author: PabstMirror
* Takes some arguments and returns something or other.
* Updates the display (several times a second) called from the pfeh
*
* Arguments:
* 0: The first argument <STRING>
* 1: The second argument <OBJECT>
* 2: Third Optional Argument <BOOL><OPTIONAL>
* Nothing
*
* Return Value:
* The return value <BOOL>
* Nothing
*
* Example:
* _bool = ["something", player] call ace_common_fnc_imanexample
* [] call ace_microdagr_fnc_updateDisplay
*
* Public: Yes
* Public: No
*/
#include "script_component.hpp"
private ["_display", "_waypoints", "_posString", "_eastingText", "_northingText", "_numASL", "_aboveSeaLevelText", "_compassAngleText", "_targetPosName", "_targetPosLocationASL", "_bearingText", "_rangeText", "_targetName", "_bearing", "_2dDistanceKm", "_SpeedText", "_playerPos2d", "_wpListBox", "_currentIndex", "_wpName", "_wpPos", "_settingListBox"];
disableSerialization;
_display = displayNull;
if (GVAR(currentShowMode) == DISPLAY_MODE_DIALOG) then {
@ -40,7 +40,6 @@ case (APP_MODE_INFODISPLAY): {
_eastingText = (_posString select [0, ((count _posString)/2)]) + "e";
_northingText = (_posString select [(count _posString)/2, (count _posString - 1)]) + "n";
};
(_display displayCtrl IDC_MODEDISPLAY_EASTING) ctrlSetText _eastingText;
(_display displayCtrl IDC_MODEDISPLAY_NORTHING) ctrlSetText _northingText;