Class InstantEffect

java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.InstantEffect

public class InstantEffect extends Effect
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 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}
  • Constructor Details

  • Method Details

    • onApply

      protected void onApply(long glyph, int localIndex, int globalIndex, float delta)
      Description copied from class: Effect
      Called when this effect should be applied to the given glyph.
      Specified by:
      onApply in class Effect