2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
|
|
|
* Handle mouse wheel.
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: Control
|
|
|
|
* 1: Scroll Amount
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Boolean, true if event was handled
|
|
|
|
*/
|
|
|
|
|
2015-01-15 21:50:48 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
private ["_dir", "_params", "_control", "_button", "_screenPos", "_shiftKey", "_ctrlKey", "_handled", "_pos"];
|
|
|
|
|
|
|
|
_control = _this select 0;
|
|
|
|
_dir = _this select 1;
|
|
|
|
diag_log "Scroll";
|
|
|
|
diag_log _this;
|
|
|
|
_handled = false;
|
|
|
|
|
2015-03-24 18:43:49 +00:00
|
|
|
_handled = true;
|
2015-01-11 16:42:31 +00:00
|
|
|
// If drawing, change line color
|
2015-01-15 21:50:48 +00:00
|
|
|
|
|
|
|
|
2015-03-24 04:18:00 +00:00
|
|
|
//@todo AGM bug:
|
2015-01-15 21:50:48 +00:00
|
|
|
// ACE_Map_drawColors is never defined
|
|
|
|
|
|
|
|
/* if (count GVAR(drawing_tempLineMarker) > 0) then {
|
2015-04-07 20:01:44 +00:00
|
|
|
ACE_Map_drawColor = if (_dir > 0) then {ACE_Map_drawColor + 1} else {ACE_Map_drawColor - 1};
|
|
|
|
if (ACE_Map_drawColor >= count ACE_Map_drawColors) then {
|
2015-01-15 21:50:48 +00:00
|
|
|
ACE_Map_drawColor = ACE_Map_drawColor - count ACE_Map_drawColors;
|
2015-04-07 20:01:44 +00:00
|
|
|
};
|
|
|
|
if (ACE_Map_drawColor < 0) then {
|
2015-01-15 21:50:48 +00:00
|
|
|
ACE_Map_drawColor = ACE_Map_drawColor + count ACE_Map_drawColors;
|
2015-04-07 20:01:44 +00:00
|
|
|
};
|
|
|
|
GVAR(drawing_tempLineMarker) set [3, ACE_Map_drawColor];
|
|
|
|
GVAR(drawing_tempLineMarker) call ACE_Map_fnc_updateLineMarker;
|
2015-03-24 04:18:00 +00:00
|
|
|
|
2015-04-07 20:01:44 +00:00
|
|
|
_handled = true;
|
2015-01-15 21:50:48 +00:00
|
|
|
}; */
|
2015-01-11 16:42:31 +00:00
|
|
|
_handled
|