mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
518010be36
- mapfx moved inside map - everything related to map tools and drawing moved to it's own pbo called ace_maptools Also fixed a couple of bugs in BFT - Only a single marker was being drawn - The BFT_HideAi parameter had the opposite effect
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
/*
|
|
* Author: CAA-Picard
|
|
*
|
|
* Handle mouse wheel.
|
|
*
|
|
* Argument:
|
|
* 0: Control
|
|
* 1: Scroll Amount
|
|
*
|
|
* Return value:
|
|
* Boolean, true if event was handled
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
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;
|
|
|
|
// If drawing, change line color
|
|
|
|
|
|
//@todo AGM bug:
|
|
// ACE_Map_drawColors is never defined
|
|
|
|
/* if (count GVAR(drawing_tempLineMarker) > 0) then {
|
|
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 {
|
|
ACE_Map_drawColor = ACE_Map_drawColor - count ACE_Map_drawColors;
|
|
};
|
|
if (ACE_Map_drawColor < 0) then {
|
|
ACE_Map_drawColor = ACE_Map_drawColor + count ACE_Map_drawColors;
|
|
};
|
|
GVAR(drawing_tempLineMarker) set [3, ACE_Map_drawColor];
|
|
GVAR(drawing_tempLineMarker) call ACE_Map_fnc_updateLineMarker;
|
|
|
|
_handled = true;
|
|
}; */
|
|
_handled
|