ui/richtext/RichTextAttackSpeed.cs

A UI rich text panel definition that matches the regex for 'Attack Speed'. It defines appearance and stats to display: no icon, a pinkish color, skew and font weight, and a single stat entry showing AttackSpeed formatted as a percentage difference.

NetworkingFile Access
[RichTextPanel( @"\b[Aa]ttack [Ss]peed\b" )]
public class RichTextAttackSpeed : RichTextBase
{
	//public override string Icon => "fast_forward";
	public override string Icon => "";

	public override Color Color => new Color( 1f, 0.7f, 0.7f );

	public override float? SkewX => -10f;
	public override int? FontWeight => 500;

	//public override string AnimationName => "recoil";
	//public override float? AnimationDuration => 0.8f;
	//public override string AnimationTimingFunction => "ease-out";

	public override RichTextStatEntry[] Stats => [
		new(PlayerStat.AttackSpeed, StatFormat.PercentageDiff)
	];
}