2015-01-12 10:02:44 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-02-11 21:39:31 +00:00
|
|
|
GVAR(enabled) = false;
|
2015-10-21 20:17:28 +00:00
|
|
|
GVAR(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
|
2016-01-25 08:49:47 +00:00
|
|
|
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call EFUNC(common,addEventHandler);
|