A RichText panel definition for displaying the player's Reload Speed stat in the UI. It sets an icon (empty), a reddish color, underline with a semi-transparent underline color, and shows one stat entry for PlayerStat.ReloadSpeed formatted as a percentage difference.
[RichTextPanel( @"\b[Rr]eload [Ss]peed\b" )]
public class RichTextReloadSpeed : RichTextBase
{
//public override string Icon => "update";
public override string Icon => "";
public override Color Color => new Color( 0.9f, 0.55f, 0.55f );
public override bool Underline => true;
public override Color? UnderlineColor => new Color( 0.9f, 0.55f, 0.55f, 0.5f );
public override RichTextStatEntry[] Stats => [
new(PlayerStat.ReloadSpeed, StatFormat.PercentageDiff)
];
}