2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Shows/Hides the main menu controls
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* visible - <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_show_main_page
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-16 11:46:32 +00:00
|
|
|
GVAR(showMainPage) = _this;
|
|
|
|
|
2015-04-17 22:11:53 +00:00
|
|
|
{ctrlShow [_x, _this]} forEach [10, 100, 11, 110, 12, 120, 13, 130, 14, 140, 20, 200, 21, 210, 22, 220, 23, 230, 30, 300, 31, 310, 32, 320, 33, 330, 34, 340, 40, 400, 401, 402, 403, 41, 410, 411, 412, 42, 420,
|
2015-04-18 20:58:23 +00:00
|
|
|
500, 501, 502, 503, 600, 601, 602, 603, 1000, 1001, 1002, 1003, 1004, 2000, 3000, 4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008];
|
2015-04-17 22:11:53 +00:00
|
|
|
|
|
|
|
if (_this) then {
|
|
|
|
if (GVAR(atmosphereModeTBH)) then {
|
|
|
|
{ctrlShow [_x, false]} forEach [23, 230];
|
|
|
|
} else {
|
|
|
|
{ctrlShow [_x, false]} forEach [21, 210, 22, 220];
|
|
|
|
};
|
|
|
|
};
|