ui/richtext/RichTextBulletSpeed.cs

A UI rich-text panel definition that displays a bullet speed stat with an icon and colored label. It specifies an icon path, prepends the icon, overrides the displayed text to "speed", sets a color, and provides a single stat entry for PlayerStat.BulletSpeed formatted as a percentage difference.

[RichTextPanel( @"\b[Bb]ullet [Ss]peed\b" )]
public class RichTextBulletSpeed : RichTextBase
{
	public override string ImagePath => "textures/ui/bullet-icon.png";
	public override bool PrependIcon => true;
	public override string TextOverride => "speed";

	public override Color Color => new Color( 0.5f, 0.6f, 0.75f );

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