2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-13 21:32:56 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
GVAR(ScrollWheelFrame) = diag_frameno;
|
|
|
|
|
|
|
|
GVAR(onScrollWheel) = {
|
2015-05-14 22:12:40 +00:00
|
|
|
private ["_scroll"];
|
|
|
|
_scroll = _this select 1;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-05-14 22:12:40 +00:00
|
|
|
if (GVAR(ScrollWheelFrame) == diag_frameno) exitWith {};
|
|
|
|
GVAR(ScrollWheelFrame) = diag_frameno;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-05-14 22:12:40 +00:00
|
|
|
{
|
|
|
|
[_scroll] call _x;
|
|
|
|
} count ((missionNamespace getVariable ["ACE_EventHandler_ScrollWheel", [-1, [], []]]) select 2);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|