2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates all atmosphere column input fields
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_atmosphere
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-19 09:02:06 +00:00
|
|
|
if (GVAR(currentUnit) == 2) then {
|
2015-04-17 22:11:53 +00:00
|
|
|
ctrlSetText [200, Str(Round(GVAR(temperature) * 10) / 10)];
|
2015-04-06 13:51:59 +00:00
|
|
|
} else {
|
2015-04-17 22:11:53 +00:00
|
|
|
ctrlSetText [200, Str(Round((GVAR(temperature) * 1.8 + 32) * 10) / 10)];
|
|
|
|
};
|
2015-04-19 09:02:06 +00:00
|
|
|
if (GVAR(currentUnit) == 2) then {
|
2015-04-16 16:14:32 +00:00
|
|
|
ctrlSetText [210, Str(Round(GVAR(barometricPressure)))];
|
2015-04-17 22:11:53 +00:00
|
|
|
} else {
|
|
|
|
ctrlSetText [210, Str(Round(GVAR(barometricPressure) / 33.8638866667 * 100) / 100)];
|
2015-04-06 13:51:59 +00:00
|
|
|
};
|
2015-04-16 16:14:32 +00:00
|
|
|
ctrlSetText [220, Str(Round(GVAR(relativeHumidity) * 100 * 10) / 10)];
|
2015-04-19 09:02:06 +00:00
|
|
|
if (GVAR(currentUnit) == 2) then {
|
2015-04-17 22:11:53 +00:00
|
|
|
ctrlSetText [230, Str(Round(GVAR(altitude)))];
|
|
|
|
} else {
|
|
|
|
ctrlSetText [230, Str(Round(GVAR(altitude) * 3.2808399))];
|
|
|
|
};
|