123456789101112131415161718192021222324252627 |
- /*
- Name: cTab_fnc_toggleMapTools
-
- Author(s):
- Gundy
- Description:
- Toggle drawing of map tools
-
-
- Parameters:
- 0: STRING - Name of uiNamespace variable for interface
-
- Returns:
- BOOLEAN - Draw map tools
-
- Example:
- cTabDrawMapTools = call cTab_fnc_toggleMapTools;
- */
- private ["_displayName","_currentMapTools","_newMapTools"];
- _displayName = _this select 0;
- _currentMapTools = [_displayName,"mapTools"] call cTab_fnc_getSettings;
- _newMapTools = if (_currentMapTools) then {false} else {true};
- [_displayName,[["mapTools",_newMapTools]]] call cTab_fnc_setSettings;
- _newMapTools
|