2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-17 22:11:53 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Toggles the target 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_target_data
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (ctrlVisible 14000) then {
|
|
|
|
false call FUNC(show_target_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 {
|
|
|
|
call FUNC(calculate_target_solution);
|
2016-11-02 12:56:59 +00:00
|
|
|
} else {
|
|
|
|
call FUNC(update_target_data);
|
2015-04-17 22:11:53 +00:00
|
|
|
};
|
|
|
|
} else {
|
|
|
|
true call FUNC(show_target_data);
|
|
|
|
false call FUNC(show_main_page);
|
|
|
|
};
|