mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup / Headers
This commit is contained in:
parent
2ad9193475
commit
6b0fb84f65
@ -1,26 +0,0 @@
|
|||||||
// MARKERS
|
|
||||||
class CfgMarkers {
|
|
||||||
class ACE_MapToolFixed {
|
|
||||||
name = "MapToolFixed";
|
|
||||||
icon = PATHTOF(data\mapToolFixed.paa);
|
|
||||||
scope = 0;
|
|
||||||
color[] = {1,1,1,1};
|
|
||||||
size = 32;
|
|
||||||
};
|
|
||||||
|
|
||||||
class ACE_MapToolRotatingNormal {
|
|
||||||
name = "MapToolRotating";
|
|
||||||
icon = PATHTOF(data\mapToolRotatingNormal.paa);
|
|
||||||
scope = 0;
|
|
||||||
color[] = {1,1,1,1};
|
|
||||||
size = 32;
|
|
||||||
};
|
|
||||||
|
|
||||||
class ACE_MapToolRotatingSmall {
|
|
||||||
name = "MapToolRotating";
|
|
||||||
icon = PATHTOF(data\mapToolRotatingSmall.paa);
|
|
||||||
scope = 0;
|
|
||||||
color[] = {1,1,1,1};
|
|
||||||
size = 32;
|
|
||||||
};
|
|
||||||
};
|
|
@ -32,7 +32,6 @@ class RscEdit;
|
|||||||
|
|
||||||
#include "MapGpsUI.hpp"
|
#include "MapGpsUI.hpp"
|
||||||
#include "CfgEventHandlers.hpp"
|
#include "CfgEventHandlers.hpp"
|
||||||
#include "CfgMarkers.hpp"
|
|
||||||
#include "CfgVehicles.hpp"
|
#include "CfgVehicles.hpp"
|
||||||
#include "CfgWeapons.hpp"
|
#include "CfgWeapons.hpp"
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Add the line marker
|
* Add the line marker
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Marker Name (string)
|
* 0: Marker Name <STRING>
|
||||||
* 1: Marker start pos (array)
|
* 1: Marker start pos <ARRAY>
|
||||||
* 2: Marker end pos (array)
|
* 2: Marker end pos <ARRAY>
|
||||||
* 3: Color index (Number)
|
* 3: Color index <NUMBER>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Return
|
* None
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_name = _this select 0;
|
_name = _this select 0;
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Returns the equivalent of 100m in screen coordinates
|
* Returns the equivalent of 100m in screen coordinates
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Return
|
* No
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_pos = ((finddisplay 12) displayctrl 51) ctrlMapScreenToWorld [0.5, 0.5];
|
_pos = ((finddisplay 12) displayctrl 51) ctrlMapScreenToWorld [0.5, 0.5];
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
// by esteldunedain
|
/*
|
||||||
|
* Author: esteldunedain
|
||||||
|
* canDraw
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Return value:
|
||||||
|
* <BOOL>
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
(missionNameSpace getVariable [QGVAR(drawing_syncMarkers), true] && {GVAR(EveryoneCanDrawOnBriefing)}) ||
|
(missionNameSpace getVariable [QGVAR(drawing_syncMarkers), true] && {GVAR(EveryoneCanDrawOnBriefing)}) ||
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
// by esteldunedain
|
/*
|
||||||
|
* Author: esteldunedain
|
||||||
|
* canUseMapGPS
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Return value:
|
||||||
|
* <BOOL>
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
visibleMap &&
|
visibleMap &&
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
// by esteldunedain
|
/*
|
||||||
|
* Author: esteldunedain
|
||||||
|
* canUseMapTools
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Return value:
|
||||||
|
* <BOOL>
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
visibleMap &&
|
visibleMap &&
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Cancel the drawing of the current line marker
|
* Cancel the drawing of the current line marker
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* None
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
GVAR(drawing_isDrawing) = false;
|
GVAR(drawing_isDrawing) = false;
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Copy recieved markers to map
|
* Copy recieved markers to map
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Array of markers to copy (Array)
|
* 0: Array of markers to copy <ARRAY>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Return
|
* None
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
PARAMS_1(_lineMarkers);
|
PARAMS_1(_lineMarkers);
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Send request to remote player
|
* Send request to remote player
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Player (Unit)
|
* 0: Player <OBJECT>
|
||||||
* 0: Target player (Unit)
|
* 0: Target player <OBJECT>
|
||||||
*
|
*
|
||||||
* Code Chain:
|
* Code Chain:
|
||||||
* START: copyMapStart: triggers event drawing_requestMarkers on remote
|
* START: copyMapStart: triggers event drawing_requestMarkers on remote
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Handle key down on map.
|
* Handle key down on map.
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Display (display)
|
* 0: Display (display)
|
||||||
* 1: Key code (number)
|
* 1: Key code (number)
|
||||||
* 2: Shift Key (boolean)
|
* 2: Shift Key (boolean)
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Return true if the position is inside the map marker (to allow dragging).
|
* Return true if the position is inside the map marker (to allow dragging).
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: x Position (in meters)
|
* 0: x Position (in meters) <NUMBER>
|
||||||
* 1: y Position (in meters)
|
* 1: y Position (in meters) <NUMBER>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Boolean
|
* Boolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define TEXTURE_WIDTH_IN_M 6205
|
#define TEXTURE_WIDTH_IN_M 6205
|
||||||
@ -19,7 +17,6 @@
|
|||||||
#define DIST_LEFT_TO_CENTER_PERC 0.30
|
#define DIST_LEFT_TO_CENTER_PERC 0.30
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (GVAR(mapTool_Shown) == 0) exitWith {false};
|
if (GVAR(mapTool_Shown) == 0) exitWith {false};
|
||||||
_textureWidth = [TEXTURE_WIDTH_IN_M, TEXTURE_WIDTH_IN_M / 2] select (GVAR(mapTool_Shown) - 1);
|
_textureWidth = [TEXTURE_WIDTH_IN_M, TEXTURE_WIDTH_IN_M / 2] select (GVAR(mapTool_Shown) - 1);
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Opens or closes the gps on the map screen, showing coordinates
|
* Opens or closes the gps on the map screen, showing coordinates
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Open GPS? (Boolean)
|
* 0: Open GPS? <BOOL>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_shouldOpenGps = _this select 0;
|
_shouldOpenGps = _this select 0;
|
||||||
@ -22,4 +22,3 @@ if (_shouldOpenGps && {"ItemGPS" in assignedItems ACE_player} && {!_isOpen}) the
|
|||||||
} else {
|
} else {
|
||||||
("RscACE_MapGps" call BIS_fnc_rscLayer) cutText ["","PLAIN"];
|
("RscACE_MapGps" call BIS_fnc_rscLayer) cutText ["","PLAIN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ disableSerialization;
|
|||||||
|
|
||||||
_mapGpsDisplay = uiNamespace getVariable [QGVAR(ui_mapGpsDisplay), displayNull];
|
_mapGpsDisplay = uiNamespace getVariable [QGVAR(ui_mapGpsDisplay), displayNull];
|
||||||
_ctrl = _mapGpsDisplay displayCtrl 913590;
|
_ctrl = _mapGpsDisplay displayCtrl 913590;
|
||||||
_ctrl ctrlSetText str(round(getDir player)); //set Heading
|
_ctrl ctrlSetText str(round(getDir ACE_player)); //set Heading
|
||||||
_ctrl = _mapGpsDisplay displayCtrl 913591;
|
_ctrl = _mapGpsDisplay displayCtrl 913591;
|
||||||
_ctrl ctrlSetText str(round((getPosASL player) select 2)); //set Altitude
|
_ctrl ctrlSetText str(round((getPosASL ACE_player) select 2)); //set Altitude
|
||||||
_ctrl = _mapGpsDisplay displayCtrl 913592;
|
_ctrl = _mapGpsDisplay displayCtrl 913592;
|
||||||
_ctrl ctrlSetText mapGridPosition player; //set grid cords
|
_ctrl ctrlSetText mapGridPosition ACE_player; //set grid cords
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Remove the line marker
|
* Remove the line marker
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Marker Name (string)
|
* 0: Marker Name <STRING>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Return
|
* Return
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
*
|
|
||||||
* Updates the line marker position and scale
|
* Updates the line marker position and scale
|
||||||
*
|
*
|
||||||
* Argument:
|
* Arguments:
|
||||||
* 0: Marker Name (string)
|
* 0: Marker Name <STRING>
|
||||||
* 1: Marker start pos (array)
|
* 1: Marker start pos <ARRAY>
|
||||||
* 2: Marker end pos (array)
|
* 2: Marker end pos <ARRAY>
|
||||||
* 3: Color index (Number)
|
* 3: Color index <NUMBER>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Return
|
* None
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_name = _this select 0;
|
_name = _this select 0;
|
||||||
|
@ -7,8 +7,9 @@
|
|||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define TEXTURE_WIDTH_IN_M 6205
|
#define TEXTURE_WIDTH_IN_M 6205
|
||||||
|
@ -10,8 +10,3 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "\z\ace\Addons\main\script_macros.hpp"
|
#include "\z\ace\Addons\main\script_macros.hpp"
|
||||||
|
|
||||||
|
|
||||||
#define MARKERNAME_MAPTOOL_FIXED "ACE_MapToolFixed"
|
|
||||||
#define MARKERNAME_MAPTOOL_ROTATINGNORMAL "ACE_MapToolRotatingNormal"
|
|
||||||
#define MARKERNAME_MAPTOOL_ROTATINGSMALL "ACE_MapToolRotatingSmall"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user