Méthode | Description | |
---|---|---|
MarkupText ( ) : System | ||
MarkupText ( float textWidth ) : System | ||
compile ( ) : void |
compiles the current text to prepare it for rendering
|
|
render ( |
renders the MarkupText
|
|
setConditional ( string name, bool conditional ) : |
sets a conditional which can be used in an if tag with a condition attribute. It is also valid to negate the condition by prepending a ! to the name in the if tag
|
|
setFont ( string name, IFont font ) : |
sets a font that can be used in a text tag via the font attribute
|
|
setText ( string text ) : |
sets the text used for the run. Text should be valid XML.
|
|
setTextWidth ( float textWidth ) : |
sets the width that the run will fill
|
|
setTexture ( string name, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
sets a texture which can be used in an img tag via the source attribute
|
Méthode | Description | |
---|---|---|
parseColor ( string hexString ) : Color | ||
parseVector2 ( string vectorString ) : Vector2 | ||
wrapLine ( Vector2 position, List |
public MarkupText ( float textWidth ) : System | ||
textWidth | float | |
Résultat | System |
public render ( |
||
graphics | Graphics. | |
camera | Camera. | |
Résultat | void |
public setConditional ( string name, bool conditional ) : |
||
name | string | Name. |
conditional | bool | Conditional. |
Résultat |
public setFont ( string name, IFont font ) : |
||
name | string | Name. |
font | IFont | Font. |
Résultat |
public setText ( string text ) : |
||
text | string | Text. |
Résultat |
public setTextWidth ( float textWidth ) : |
||
textWidth | float | Width. |
Résultat |
public setTexture ( string name, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
name | string | Name. |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
Résultat |