2015-01-12 10:02:44 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-02-11 21:39:31 +00:00
|
|
|
GVAR(enabled) = false;
|
2015-05-21 16:42:44 +00:00
|
|
|
GVAR(ACE_time) = 0;
|
2015-01-12 10:06:27 +00:00
|
|
|
GVAR(position) = [0,0,0];
|
2015-01-18 15:42:33 +00:00
|
|
|
|
2015-04-13 03:44:19 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2015-02-03 22:03:43 +00:00
|
|
|
#include "initKeybinds.sqf"
|
2015-04-03 15:50:52 +00:00
|
|
|
|
|
|
|
["infoDisplayChanged", {
|
2015-04-03 17:25:28 +00:00
|
|
|
if (!isNull ((_this select 0) displayCtrl 1713151)) then {
|
|
|
|
uiNamespace setVariable ["ACE_dlgRangefinder", _this select 0];
|
|
|
|
((_this select 0) displayCtrl 151) ctrlSetTextColor [0,0,0,0];
|
2015-04-03 15:50:52 +00:00
|
|
|
};
|
|
|
|
}] call EFUNC(common,addEventHandler);
|
2015-04-07 21:18:31 +00:00
|
|
|
|
2015-04-03 16:49:41 +00:00
|
|
|
// Register event for global updates
|
2015-04-07 21:18:31 +00:00
|
|
|
[QGVAR(forceUpdate), FUNC(onForceUpdate)] call EFUNC(common,addEventHandler);
|