mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
18 lines
484 B
Plaintext
18 lines
484 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
params ["_display"];
|
|
|
|
_display displayAddEventHandler ["MouseZChanged", {
|
|
params ["", "_scroll"];
|
|
[_scroll] call FUNC(handleScrollWheel);
|
|
}];
|
|
|
|
_display displayAddEventHandler ["MouseButtonDown", {
|
|
params ["", "_button"];
|
|
if (GVAR(isPlacing) isNotEqualTo PLACE_WAITING) exitWith {false};
|
|
if (_button isNotEqualTo 1) exitWith {false}; // 1 = Left mouse button
|
|
GVAR(isPlacing) = PLACE_CANCEL;
|
|
}];
|