ACE3/addons/bft_drawing/functions/fnc_doBFTDraw.sqf

23 lines
510 B
Plaintext
Raw Normal View History

2016-09-03 07:35:37 +00:00
#include "script_component.hpp"
disableSerialization;
params ["_map"];
if (isNull _map) exitWith {};
// event handlers for each map
{
_map ctrlAddEventhandler _x;
} forEach [
["KeyDown",FUNC(KeyDown)],
["KeyUp",FUNC(KeyUp)],
["MouseButtonDown",FUNC(MouseButtonDown)],
["MouseButtonUp",FUNC(MouseButtonUp)],
["MouseMoving",{GVAR(mousepos)=[_this select 1,_this select 2];}],
["MouseHolding",{GVAR(mousepos)=[_this select 1,_this select 2];}],
["Draw",FUNC(mapDraw)]
];
true