mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
34 lines
853 B
Plaintext
34 lines
853 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
* Updates all atmosphere column input fields
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* call ace_atragmx_fnc_update_atmosphere
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if (GVAR(currentUnit) == 2) then {
|
|
ctrlSetText [200, Str(Round(GVAR(temperature) * 10) / 10)];
|
|
} else {
|
|
ctrlSetText [200, Str(Round((GVAR(temperature) * 1.8 + 32) * 10) / 10)];
|
|
};
|
|
if (GVAR(currentUnit) == 2) then {
|
|
ctrlSetText [210, Str(Round(GVAR(barometricPressure)))];
|
|
} else {
|
|
ctrlSetText [210, Str(Round(GVAR(barometricPressure) / 33.8638866667 * 100) / 100)];
|
|
};
|
|
ctrlSetText [220, Str(Round(GVAR(relativeHumidity) * 100 * 10) / 10)];
|
|
if (GVAR(currentUnit) == 2) then {
|
|
ctrlSetText [230, Str(Round(GVAR(altitude)))];
|
|
} else {
|
|
ctrlSetText [230, Str(Round(GVAR(altitude) * 3.2808399))];
|
|
};
|