C# Class geek.GameEngine.Visuals.GameText

The class representing the text drawable on screen.
Inheritance: InteractableObject
Afficher le fichier Open project: impworks/xna.geek.engine

Méthodes publiques

Свойство Type Description
Font Microsoft.Xna.Framework.Graphics.SpriteFont

Protected Properties

Свойство Type Description
_HotSpot Microsoft.Xna.Framework.Vector2

Méthodes publiques

Méthode Description
Draw ( SpriteBatch batch ) : void
GameText ( SpriteFont font, string text = "" ) : Microsoft.Xna.Framework
GameText ( string fontAsset, string text = "" ) : Microsoft.Xna.Framework
GetBoundingBox ( bool absolute = false ) : Rectangle

Méthodes protégées

Méthode Description
resetDimensions ( ) : void

Recalculate hot spot and scaling.

Method Details

Draw() public méthode

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GameText() public méthode

public GameText ( SpriteFont font, string text = "" ) : Microsoft.Xna.Framework
font Microsoft.Xna.Framework.Graphics.SpriteFont
text string
Résultat Microsoft.Xna.Framework

GameText() public méthode

public GameText ( string fontAsset, string text = "" ) : Microsoft.Xna.Framework
fontAsset string
text string
Résultat Microsoft.Xna.Framework

GetBoundingBox() public méthode

public GetBoundingBox ( bool absolute = false ) : Rectangle
absolute bool
Résultat Microsoft.Xna.Framework.Rectangle

resetDimensions() protected méthode

Recalculate hot spot and scaling.
protected resetDimensions ( ) : void
Résultat void

Property Details

Font public_oe property

Gets or sets the font of the text.
public SpriteFont,Microsoft.Xna.Framework.Graphics Font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

_HotSpot protected_oe property

The text hotspot defined by text alignment.
protected Vector2,Microsoft.Xna.Framework _HotSpot
Résultat Microsoft.Xna.Framework.Vector2