public interface TypingListener
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Called when the char progression reaches the end.
|
void |
event(java.lang.String event)
Called each time an
EVENT token is processed. |
void |
onChar(long ch)
Called when a new character is displayed.
|
java.lang.String |
replaceVariable(java.lang.String variable)
Called when variable tokens are replaced in text.
|
void event(java.lang.String event)
EVENT token is processed.event - Name of the event specified in the token. e.g. {EVENT=player_name} will have
player_name as argument.void end()
java.lang.String replaceVariable(java.lang.String variable)
null is returned.variable - The variable name assigned to the {VAR} token. For example, in {VAR=townName},
the variable will be townNamenull if this method should be ignored and the regular values should be
used instead.TypingLabel.setVariable(String, String),
TypingLabel.setVariables(java.util.Map),
TypingLabel.setVariables(com.badlogic.gdx.utils.ObjectMap)void onChar(long ch)