Пример #1
0
        /// <summary>
        /// Displays the UI for Orbital Logistics
        /// </summary>
        private void ShowOrbitalLogistics()
        {
            _orbitalLogisticsGui.DrawWindow();

            if (_orbitalLogisticsGui.ReviewTransferGui != null)
            {
                _childWindows.AddUnique(_orbitalLogisticsGui.ReviewTransferGui);
            }
        }
Пример #2
0
        /// <summary>
        /// Implementation of <see cref="MonoBehaviour"/>.OnGUI
        /// </summary>
        void OnGUI()
        {
            try
            {
                if (!_isLoaded || _mainGui == null || !_mainGui.IsVisible())
                {
                    return;
                }

                // Draw main window and transfer view window, if available
                _mainGui.DrawWindow();

                if (_mainGui.ReviewTransferGui != null && _mainGui.ReviewTransferGui.IsVisible())
                {
                    _mainGui.ReviewTransferGui.DrawWindow();
                }
            }
            catch (Exception ex)
            {
                Debug.LogError("[MKS] ERROR in AddonOrbitalLogistics.OnGUI: " + ex.Message);
            }
        }