메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
parseColor ( string hexString ) : Color | ||
parseVector2 ( string vectorString ) : Vector2 | ||
wrapLine ( Vector2 position, List |
public render ( |
||
graphics | Graphics. | |
camera | Camera. | |
리턴 | void |
public setConditional ( string name, bool conditional ) : |
||
name | string | Name. |
conditional | bool | Conditional. |
리턴 |
public setFont ( string name, IFont font ) : |
||
name | string | Name. |
font | IFont | Font. |
리턴 |
public setTextWidth ( float textWidth ) : |
||
textWidth | float | Width. |
리턴 |
public setTexture ( string name, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
name | string | Name. |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
리턴 |