Class InstantEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.InstantEffect
Makes a span of text appear instantly, without the typing delay taking place per-glyph. Text after the span will be
set to a speed of
Parameters: (this has no parameters)
Example usage:
TypingConfig.DEFAULT_SPEED_PER_CHAR
. Doesn't change over time and doesn't have parameters.
Parameters: (this has no parameters)
Example usage:
{INSTANT}This text will show up all at once.{ENDINSTANT}
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.tommyettinger.textra.Effect
Effect.EffectBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onApply
(long glyph, int localIndex, int globalIndex, float delta) Called when this effect should be applied to the given glyph.Methods inherited from class com.github.tommyettinger.textra.Effect
apply, assignTokenName, calculateFadeout, calculateProgress, calculateProgress, calculateProgress, isFinished, paramAsBoolean, paramAsColor, paramAsFloat, update