public class NullTextAnimation extends BaseTextAnimation
TextAnimation
that just renders the text directlyConstructor and Description |
---|
NullTextAnimation() |
Modifier and Type | Method and Description |
---|---|
void |
interpolate(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
java.lang.String text,
float alpha)
Interpolate the animation
|
void |
render(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
Graphics g,
int renderX,
int renderY)
Renders the animation
|
protected void |
resetState() |
void |
skip()
Sets the
TextAnimation to be skipped |
void |
update(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
java.lang.String text,
float renderWidth,
int hAlign,
float delta)
Update the animation
|
addTextAnimationListener, isFinished, removeTextAnimationListener, reset, setFinished
public void skip()
TextAnimation
TextAnimation
to be skippedpublic void update(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache, java.lang.String text, float renderWidth, int hAlign, float delta)
TextAnimation
cache
- The BitmapFontCache
to use to render the texttext
- The target text to displayrenderWidth
- The text render widthhAlign
- The horizontal alignment of the textdelta
- The time since the last frame (in seconds)public void interpolate(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache, java.lang.String text, float alpha)
TextAnimation
cache
- The BitmapFontCache
to use to render the texttext
- The target text to displayalpha
- The interpolation alpha valuepublic void render(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache, Graphics g, int renderX, int renderY)
TextAnimation
cache
- The BitmapFontCache
to use to render the textg
- The Graphics
contextrenderX
- The render X coordinaterenderY
- The render Y coordinateprotected void resetState()
resetState
in class BaseTextAnimation