Пример #1
0
            internal GUIBox.GUIBoxStyle ConvertToGUIBoxStyle()
            {
                GUIBox.GUIBoxStyle style = new GUIBox.GUIBoxStyle();
                style.Border = Border;
                style.Colour = Colour;

                return(style);
            }
Пример #2
0
        /// <summary>
        /// Draws a box on the screen
        /// </summary>
        /// <param name="rect">The shape (Position and size) of the box</param>
        /// <param name="style">The BoxStyle used to render this box</param>
        internal static void InternalBox(RectangleShape rect, GUIBox.GUIBoxStyle style)
        {
            GUIOperation operation = new GUIOperation(0, 0);

            operation.Border    = style.Border;
            operation.Bounds    = rect;
            operation.DrawLevel = 1;
            operation.Sprite    = style.Texture;
            operation.Colour    = style.Colour;

            ActiveInstance.m_guiOperations.Add(operation);
        }