mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
919 B
Plaintext
29 lines
919 B
Plaintext
#include "script_component.hpp"
|
|
|
|
// bail if running on HC
|
|
if (!hasInterface) exitWith {};
|
|
|
|
// setup draw size variables
|
|
[1] call FUNC(updateDrawSize);
|
|
[true] call FUNC(setDrawText);
|
|
|
|
/*
|
|
// register with reporting channels when map is opened
|
|
["visibleMapChanged",{
|
|
params ["", "_mapIsVisible"];
|
|
|
|
if (_mapIsVisible) then {
|
|
// set icon size back to default
|
|
[1] call FUNC(updateDrawSize);
|
|
[true] call FUNC(setDrawText);
|
|
// register reporting modes
|
|
[EGVAR(bft,allReportingModes)] call EFUNC(bft,updateRegisteredModes);
|
|
// set encryption key
|
|
[[ACE_player] call EFUNC(bft,getEncryptionKey)] call EFUNC(bft,updateRegisteredEncryptionKeys);
|
|
// start update loop
|
|
[true,5] call EFUNC(bft,updateAvailableDevicesPosition);
|
|
} else {
|
|
[false] call EFUNC(bft,updateAvailableDevicesPosition);
|
|
};
|
|
}] call EFUNC(common,addEventHandler);*/
|