2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-03-25 14:00:49 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Handles right clicking on the map ('dragging' the map)
|
|
|
|
* Release autotrack if enabled.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Map <CONTROL>
|
|
|
|
* 1: MouseButton <NUMBER>
|
|
|
|
* 2: MousePosX <NUMBER>
|
|
|
|
* 3: MousePosY <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-26 03:31:33 +00:00
|
|
|
* None
|
2015-03-25 14:00:49 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [minimap,0,0.5,0.5] call ace_microdagr_fnc_mapButtonDownEH
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-26 16:00:59 +00:00
|
|
|
params ["", "_mouseButton"];
|
2015-03-25 14:00:49 +00:00
|
|
|
|
|
|
|
//Only handle RMB
|
|
|
|
if (_mouseButton != 1) exitWith {};
|
|
|
|
|
|
|
|
if (GVAR(mapAutoTrackPosition)) then {
|
|
|
|
GVAR(mapAutoTrackPosition) = false;
|
|
|
|
[] call FUNC(showApplicationPage);
|
|
|
|
};
|