2015-01-18 16:17:06 +00:00
|
|
|
// by commy2
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (_this select 1 == 1) then {
|
|
|
|
disableserialization;
|
|
|
|
_display = _this select 0;
|
|
|
|
|
|
|
|
_pos = ctrlPosition (_display displayCtrl 102);
|
|
|
|
_pos = [
|
|
|
|
(_pos select 0) + (_pos select 2) / 2,
|
|
|
|
(_pos select 1) + (_pos select 3) / 2
|
|
|
|
];
|
|
|
|
|
|
|
|
switch (true) do {
|
|
|
|
case (!isNull findDisplay 12): {
|
|
|
|
_pos = (findDisplay 12 displayCtrl 51) ctrlMapScreenToWorld _pos;
|
|
|
|
};
|
|
|
|
case (!isNull findDisplay 37): {
|
|
|
|
_pos = (findDisplay 37 displayCtrl 51) ctrlMapScreenToWorld _pos;
|
|
|
|
};
|
|
|
|
case (!isNull findDisplay 52): {
|
|
|
|
_pos = (findDisplay 52 displayCtrl 51) ctrlMapScreenToWorld _pos;
|
|
|
|
};
|
|
|
|
case (!isNull findDisplay 53): {
|
|
|
|
_pos = (findDisplay 53 displayCtrl 51) ctrlMapScreenToWorld _pos;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// set and send marker data the next frame. the actual marker isn't created yet
|
|
|
|
[
|
|
|
|
{
|
|
|
|
|
2015-01-19 15:59:00 +00:00
|
|
|
[QGVAR(setMarkerNetwork), [
|
|
|
|
allMapMarkers select (count allMapMarkers - 1), [
|
2015-01-20 04:49:28 +00:00
|
|
|
GETGVAR(currentMarkerConfigName,""),
|
|
|
|
GETGVAR(currentMarkerColorConfigName,""),
|
2015-01-19 15:59:00 +00:00
|
|
|
_this,
|
|
|
|
GETGVAR(currentMarkerAngle,0)
|
|
|
|
]
|
2015-01-18 16:17:06 +00:00
|
|
|
]] call EFUNC(common,globalEvent);
|
|
|
|
|
|
|
|
},
|
|
|
|
_pos
|
|
|
|
] call EFUNC(common,execNextFrame);
|
|
|
|
|
|
|
|
};
|