ACE3/addons/microdagr/functions/fnc_mapButtonDownEH.sqf
2015-08-26 05:31:33 +02:00

31 lines
625 B
Plaintext

/*
* 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:
* None
*
* Example:
* [minimap,0,0.5,0.5] call ace_microdagr_fnc_mapButtonDownEH
*
* Public: No
*/
#include "script_component.hpp"
params ["_theMap", "_mouseButton", "_xPos", "_yPos"];
//Only handle RMB
if (_mouseButton != 1) exitWith {};
if (GVAR(mapAutoTrackPosition)) then {
GVAR(mapAutoTrackPosition) = false;
[] call FUNC(showApplicationPage);
};