Skip to content

WindowTitleBar.cs

Charles Humphrey edited this page Nov 17, 2017 · 1 revision

RandomchaosMGUIBase.UIBaseClasses.WindowTitleBar

This class is derived from ControlBase. It is used for displaying a title bar on a window.

Public Properties

Color TextColor

Color the title text will be rendered in.

string Text

The title text to be rendered.

Vector2 TextShadowOffset

The shadow offset for the text.

Color TextShadowColor

The color of the text shadow

Public Methods

WindowTitleBar(Game game, Rectangle sizeRect,string text, string fontAsset, string backgroundAsset = null)

Constructor.

void Draw(GameTime gameTime)

As well as calling base.Draw(gameTime), it then renders the text components.

Clone this wiki locally