TypedAlphabet
| Kind | class |
| Package | objects |
| Full name | objects.TypedAlphabet |
| Source | source/objects/TypedAlphabet.hx |
| Extends | Alphabet |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
onFinish | Void->Void = null | no | — | — |
finishedText | Bool | no | false | — |
delay | Float | no | 0.05 | — |
sound | String | no | 'dialogue' | — |
volume | Float | no | 1 | — |
Public methods
new (constructor)
function new(x:Float, y:Float, text:String = "", delay:Float = 0.05, bold:Bool = false)
| Parameter | Type | Default |
|---|---|---|
x | Float | — |
y | Float | — |
text (optional) | String | "" |
delay (optional) | Float | 0.05 |
bold (optional) | Bool | false |
showCharacterUpTo
function showCharacterUpTo(upTo:Int)
| Parameter | Type | Default |
|---|---|---|
upTo | Int | — |
resetDialogue
function resetDialogue()
finishText
function finishText()
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
_curLetter | Int | no |
_timeToUpdate | Float | no |
| Method |
|---|
override function set_text(newText:String) |
override function update(elapsed:Float) |