TextSprite
Rendered TTF text
Inherits: Sprite
Operations
IsOk
Initialization status flag
method : public : IsOk() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if initialized, false otherwise |
Render
Renders an image
method : public : Render(x:Int, y:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| x | Int | x-position |
| y | Int | y-position |
RenderedText
Renders the set text
method : public : RenderedText(text:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| text | String | text to render |
RenderedText
Renders the set text
method : public : RenderedText(text:String, color:Color) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| text | String | text to render |
| color | Color | color of text |
SetColor
Sets the text color
method : public : SetColor(color:Color) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| color | Color | text color |
SetFont
Sets the text font
method : public : SetFont(font:Font) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| font | Font | TTF |