mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
697 B
Plaintext
25 lines
697 B
Plaintext
/////////////////////////////////////////////////////
|
|
// testkb.sqf
|
|
// by nou
|
|
//
|
|
// please see the documentation in add_ruler.sqf
|
|
/////////////////////////////////////////////////////
|
|
//#define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
|
|
PARAMS_2(_event,_down);
|
|
|
|
if(_down) then {
|
|
GVAR(RulerKeyDown) = (_event select 1);
|
|
switch (GVAR(RulerKeyDown)) do {
|
|
case (["CBA","events","ace_sys_maptools","Delete_Line","key"] call ace_settings_fnc_getNumber): {
|
|
[] call FUNC(DeleteLine);
|
|
};
|
|
default {};
|
|
};
|
|
} else {
|
|
GVAR(RulerKeyDown) = -1000;
|
|
[] call GVAR(UpHandlerFnc);
|
|
GVAR(UpHandlerFnc) = {};
|
|
GVAR(DragAction) = "";
|
|
}; |