2015-08-08 06:26:15 +00:00
|
|
|
/*
|
2015-08-10 06:45:43 +00:00
|
|
|
* Author: Dslyecxi, MikeMatrix
|
2015-08-08 06:26:15 +00:00
|
|
|
* Initializes the receiver and hooks it to the Draw event of the map.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_map_gestures_fnc_receiverInit
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ACE_player setVariable [QGVAR(Transmit), false, true];
|
|
|
|
GVAR(EnableTransmit) = false;
|
|
|
|
|
|
|
|
if (!isNil QGVAR(DrawMapHandlerID)) then {
|
2015-08-24 20:03:47 +00:00
|
|
|
(findDisplay 12 displayCtrl 51) ctrlRemoveEventHandler ["Draw", GVAR(DrawMapHandlerID)];
|
|
|
|
GVAR(DrawMapHandlerID) = nil;
|
2015-08-08 06:26:15 +00:00
|
|
|
};
|
2017-03-08 18:34:58 +00:00
|
|
|
GVAR(DrawMapHandlerID) = findDisplay 12 displayCtrl 51 ctrlAddEventHandler ["Draw", {call FUNC(drawMapGestures)}];
|