mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
574 B
Plaintext
26 lines
574 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Handles MouseZChanged event.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public : No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
// prevents a bug that causes the MouseZChanged to trigger N-times, where N is the number of times you consecutively pressed "Restart" instead of "Preview" in the editor
|
|
if (GVAR(ScrollWheelFrame) == diag_frameno) exitWith {};
|
|
|
|
GVAR(ScrollWheelFrame) = diag_frameno;
|
|
|
|
{
|
|
[_this select 1] call _x;
|
|
false
|
|
} count ((missionNamespace getVariable ["ACE_EventHandler_ScrollWheel", [-1, [], []]]) select 2);
|
|
|
|
nil
|