Nez.Portable/UI/IMGUI.cs
/// <summary>
/// creates a full width header with text
/// </summary>
/// <param name="text">Text.</param>
creates a full width header with text
creates a full width header with text
public static void header(string text)
        {
            _spriteBatch.drawRect(
                _elementX - ELEMENT_PADDING,
                _lastY + ELEMENT_PADDING,
                _elementWidth + ELEMENT_PADDING * 2,
                SHORT_ELEMENT_HEIGHT,
                HEADER_BG);
            drawString(text, FONT_COLOR, TextAlign.Center, SHORT_ELEMENT_HEIGHT);
            endElement(SHORT_ELEMENT_HEIGHT);
        }
public static void header ( string text ) { _spriteBatch . drawRect ( _elementX - ELEMENT_PADDING , _lastY + ELEMENT_PADDING , _elementWidth + ELEMENT_PADDING * 2 , SHORT_ELEMENT_HEIGHT , HEADER_BG ) ; drawString ( text , FONT_COLOR , TextAlign . Center , SHORT_ELEMENT_HEIGHT ) ; endElement ( SHORT_ELEMENT_HEIGHT ) ; }
creates a full width header with text
creates a full width header with text
// expand the header to full width and use a shorter element height
text
string
None