Class TriggerEffect

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

public class TriggerEffect
extends Effect
Allows clicking the affected text to trigger an event. You may want to use other markup with this, such as underlining or especially a color change. Doesn't change over time. This is fully dependent on what the TypingLabel's TypingListener/TypingAdapter does with the event by name.
  • Constructor Details

    • TriggerEffect

      public TriggerEffect​(TypingLabel label, java.lang.String[] params)
  • 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