ACE3/addons/atragmx/functions/fnc_update_target.sqf

38 lines
885 B
Plaintext
Raw Normal View History

/*
* Author: Ruthberg
* Updates all target column input fields
*
* Arguments:
* Nothing
*
* Return Value:
* Nothing
*
* Example:
* call ace_atragmx_fnc_update_target
*
* Public: No
*/
#include "script_component.hpp"
if (!isNil QGVAR(windSpeed)) then
{
2015-04-08 09:05:28 +00:00
ctrlSetText [300, Str(Round((GVAR(windSpeed) select GVAR(currentTarget)) * 100) / 100)];
};
if (!isNil QGVAR(windDirection)) then
{
2015-04-08 09:05:28 +00:00
ctrlSetText [310, Str(Round((GVAR(windDirection) select GVAR(currentTarget))))];
};
if (!isNil QGVAR(inclinationAngle)) then
{
2015-04-08 09:05:28 +00:00
ctrlSetText [320, Str(Round((GVAR(inclinationAngle) select GVAR(currentTarget))))];
};
if (!isNil QGVAR(targetSpeed)) then
{
2015-04-08 09:05:28 +00:00
ctrlSetText [330, Str(Round((GVAR(targetSpeed) select GVAR(currentTarget)) * 100) / 100)];
};
if (!isNil QGVAR(targetRange)) then
{
2015-04-08 09:05:28 +00:00
ctrlSetText [340, Str(Round((GVAR(targetRange) select GVAR(currentTarget))))];
};