ACE3/addons/atragmx/functions/fnc_toggle_solution_setup.sqf

39 lines
1.0 KiB
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-04-21 13:01:23 +00:00
/*
* Author: Ruthberg
* Toggles the solution setup screen on/off
*
* Arguments:
* Apply new data? <NUMBER>
*
* Return Value:
* None
2015-04-21 13:01:23 +00:00
*
* Example:
* 1 call ace_atragmx_fnc_toggle_solution_setup
*
* Public: No
*/
if (ctrlVisible 15000) then {
false call FUNC(show_solution_setup);
true call FUNC(show_main_page);
2016-05-03 00:32:44 +00:00
2015-04-21 13:01:23 +00:00
if (_this == 1) then {
GVAR(currentScopeClickUnit) = GVAR(currentScopeClickUnitTemp);
GVAR(currentScopeClickNumber) = GVAR(currentScopeClickNumberTemp);
GVAR(workingMemory) set [7, GVAR(currentScopeClickUnit)];
GVAR(workingMemory) set [8, GVAR(currentScopeClickNumber)];
[] call FUNC(update_scope_unit);
[] call FUNC(update_result);
};
} else {
true call FUNC(show_solution_setup);
false call FUNC(show_main_page);
2016-05-03 00:32:44 +00:00
2015-04-21 13:01:23 +00:00
GVAR(currentScopeClickUnitTemp) = GVAR(currentScopeClickUnit);
GVAR(currentScopeClickNumberTemp) = GVAR(currentScopeClickNumber);
2016-05-03 00:32:44 +00:00
2015-04-21 13:01:23 +00:00
[] call FUNC(update_solution_setup);
};