A UI rich text panel class for displaying the word "Kickback" with styling and animation. It sets the text color, an animation (recoil) with duration/timing/direction, and exposes one stat entry for PlayerStat.Kickback formatted as an int.
[RichTextPanel( @"\b[Kk]ickback\b" )]
public class RichTextKickback : RichTextBase
{
public override Color Color => new Color( 1f, 1f, 0.7f );
public override string AnimationName => "recoil";
public override float? AnimationDuration => 0.6f;
public override string AnimationTimingFunction => "ease-out";
public override string AnimationDirection => "normal";
public override RichTextStatEntry[] Stats => [
new( PlayerStat.Kickback, StatFormat.Int )
];
}