mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
518010be36
- mapfx moved inside map - everything related to map tools and drawing moved to it's own pbo called ace_maptools Also fixed a couple of bugs in BFT - Only a single marker was being drawn - The BFT_HideAi parameter had the opposite effect
39 lines
1017 B
Plaintext
39 lines
1017 B
Plaintext
#include "script_component.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP(addLineMarker);
|
|
PREP(calculateMapScale);
|
|
PREP(cancelDrawing);
|
|
PREP(canDraw);
|
|
PREP(canUseMapTools);
|
|
PREP(canUseMapGPS);
|
|
PREP(copyMapReceiveMarkers);
|
|
PREP(copyMapRemoteSend);
|
|
PREP(copyMapStart);
|
|
PREP(handleKeyDown);
|
|
PREP(handleMouseButton);
|
|
PREP(handleMouseMove);
|
|
PREP(handleMouseZChanged);
|
|
PREP(isInsideMapTool);
|
|
PREP(mapStateUpdater);
|
|
PREP(openMapGps);
|
|
PREP(openMapGpsUpdate);
|
|
PREP(removeLineMarker);
|
|
PREP(updateMapToolMarkers);
|
|
PREP(updateLineMarker);
|
|
|
|
if (isServer) then {
|
|
GVAR(drawing_serverLineMarkers) = [];
|
|
publicVariable QGVAR(drawing_serverLineMarkers);
|
|
};
|
|
|
|
//Add Event Handlers:
|
|
["drawing_removeLineMarker", FUNC(removeLineMarker) ] call EFUNC(common,addEventHandler);
|
|
["drawing_addLineMarker", FUNC(addLineMarker) ] call EFUNC(common,addEventHandler);
|
|
|
|
["drawing_requestMarkers", FUNC(copyMapRemoteSend) ] call EFUNC(common,addEventHandler);
|
|
["drawing_sendbackMarkers", FUNC(copyMapReceiveMarkers) ] call EFUNC(common,addEventHandler);
|
|
|
|
ADDON = true;
|