public class TextComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.graphics.g2d.BitmapFont |
font |
java.lang.String |
text |
| Constructor and Description |
|---|
TextComponent() |
| Modifier and Type | Method and Description |
|---|---|
static TextComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
TextComponent |
setFont(com.badlogic.gdx.graphics.g2d.BitmapFont font) |
TextComponent |
setText(java.lang.String text) |
public java.lang.String text
public com.badlogic.gdx.graphics.g2d.BitmapFont font
public static TextComponent create(com.badlogic.ashley.core.Engine engine)
public TextComponent setText(java.lang.String text)
public TextComponent setFont(com.badlogic.gdx.graphics.g2d.BitmapFont font)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable