2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-18 16:17:06 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
private ["_ctrl", "_data", "_direction"];
|
|
|
|
|
|
|
|
_ctrl = _this select 0;
|
|
|
|
_data = _this select 1;
|
|
|
|
|
2015-01-18 16:17:06 +00:00
|
|
|
GVAR(curSelMarkerAngle) = _data;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_direction = round _data;
|
|
|
|
if (_direction < 0) then {
|
2015-01-18 16:17:06 +00:00
|
|
|
_direction = _direction + 360;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2015-01-18 16:17:06 +00:00
|
|
|
((ctrlParent _ctrl) displayCtrl 1221) ctrlSetText format [localize "STR_ACE_Markers_MarkerDirection", _direction];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-18 16:17:06 +00:00
|
|
|
GVAR(currentMarkerAngle) = _data;
|