2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-10 14:48:58 +00:00
|
|
|
if (!isNil QUOTE(GVAR(windSpeed))) then
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
2015-04-08 09:05:28 +00:00
|
|
|
ctrlSetText [300, Str(Round((GVAR(windSpeed) select GVAR(currentTarget)) * 100) / 100)];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|
2015-04-10 14:48:58 +00:00
|
|
|
if (!isNil QUOTE(GVAR(windDirection))) then
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
2015-04-08 09:05:28 +00:00
|
|
|
ctrlSetText [310, Str(Round((GVAR(windDirection) select GVAR(currentTarget))))];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|
2015-04-10 14:48:58 +00:00
|
|
|
if (!isNil QUOTE(GVAR(inclinationAngle))) then
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
2015-04-08 09:05:28 +00:00
|
|
|
ctrlSetText [320, Str(Round((GVAR(inclinationAngle) select GVAR(currentTarget))))];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|
2015-04-10 14:48:58 +00:00
|
|
|
if (!isNil QUOTE(GVAR(targetSpeed))) then
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
2015-04-08 09:05:28 +00:00
|
|
|
ctrlSetText [330, Str(Round((GVAR(targetSpeed) select GVAR(currentTarget)) * 100) / 100)];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|
2015-04-10 14:48:58 +00:00
|
|
|
if (!isNil QUOTE(GVAR(targetRange))) then
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
2015-04-08 09:05:28 +00:00
|
|
|
ctrlSetText [340, Str(Round((GVAR(targetRange) select GVAR(currentTarget))))];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|