2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-17 22:11:53 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Toggles the atmospheric data screen on/off
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Apply new data? <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-17 22:11:53 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* 1 call ace_atragmx_fnc_toggle_atmo_env_data
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (ctrlVisible 13000) then {
|
|
|
|
false call FUNC(show_atmo_env_data);
|
|
|
|
true call FUNC(show_main_page);
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2015-04-17 22:11:53 +00:00
|
|
|
if (_this == 1) then {
|
2016-11-02 12:56:59 +00:00
|
|
|
GVAR(truingDropDropData) set [0, 0];
|
|
|
|
[true, true] call FUNC(recalculate_muzzle_velocity);
|
2015-04-17 22:11:53 +00:00
|
|
|
call FUNC(calculate_target_solution);
|
2016-11-02 12:56:59 +00:00
|
|
|
} else {
|
|
|
|
call FUNC(update_atmo_env_data);
|
2015-04-17 22:11:53 +00:00
|
|
|
};
|
|
|
|
} else {
|
|
|
|
true call FUNC(show_atmo_env_data);
|
|
|
|
false call FUNC(show_main_page);
|
|
|
|
};
|