2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates all target column input fields
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_target
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-10 16:11:01 +00:00
|
|
|
if (!isNil QGVAR(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 16:11:01 +00:00
|
|
|
if (!isNil QGVAR(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 16:11:01 +00:00
|
|
|
if (!isNil QGVAR(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 16:11:01 +00:00
|
|
|
if (!isNil QGVAR(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 16:11:01 +00:00
|
|
|
if (!isNil QGVAR(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
|
|
|
};
|