C# Class SunsetHigh.TextPanel

Inheritance: Panel, IMessagePanel
Exibir arquivo Open project: ErraticUnicorn/MOSH Class Usage Examples

Protected Properties

Property Type Description
font Microsoft.Xna.Framework.Graphics.SpriteFont

Public Methods

Method Description
TextPanel ( ) : System
TextPanel ( int x, int y, int width, int height ) : System
TextPanel ( int x, int y, int width, int height, string message ) : System
draw ( SpriteBatch sb ) : void
getMessage ( ) : string
getMessageColor ( ) : Color
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
onConfirm ( ) : void
setMessage ( string message ) : void
setMessageColor ( Color color ) : void

Method Details

TextPanel() public method

public TextPanel ( ) : System
return System

TextPanel() public method

public TextPanel ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
return System

TextPanel() public method

public TextPanel ( int x, int y, int width, int height, string message ) : System
x int
y int
width int
height int
message string
return System

draw() public method

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

getMessage() public method

public getMessage ( ) : string
return string

getMessageColor() public method

public getMessageColor ( ) : Color
return Color

loadContent() public method

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

onConfirm() public method

public onConfirm ( ) : void
return void

setMessage() public method

public setMessage ( string message ) : void
message string
return void

setMessageColor() public method

public setMessageColor ( Color color ) : void
color Color
return void

Property Details

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
return Microsoft.Xna.Framework.Graphics.SpriteFont