Ejemplo n.º 1
0
        /// <summary>Called regularly to draw the GUI on screen.</summary>
        /// <returns>A value indicating whether or not the GUI was displayed.</returns>
        internal bool Display()
        {
            if (!IsActive)
            {
                return(false);
            }
            if (_elementStyles == null)
            {
                _elementStyles = new GuiElementStyles();
            }

            GuiCoordinates = ClickThruBlocker.GUIWindow(34531230, GuiCoordinates, DrawSelectorHandler, _windowTitle);
            GuiCoordinates = GuiResizer.HandleResizing(GuiCoordinates);

            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called regularly to draw the GUI on screen.
        /// </summary>
        /// <returns>A value indicating whether or not the GUI was displayed.</returns>
        internal bool Display()
        {
            if (!IsActive || CommonKspAccess.IsPauseMenuOpen)
            {
                return(false);
            }

            if (_elementStyles == null)
            {
                _elementStyles = new GuiElementStyles();
            }

            GuiCoordinates = ClickThruBlocker.GUILayoutWindow(34534565,
                                                              GuiCoordinates,
                                                              DrawSelectorHandler,
                                                              $"{Constants.ModName} - Add");
            GuiCoordinates = GuiResizer.HandleResizing(GuiCoordinates);

            return(true);
        }