A RichText panel definition for UI that matches the phrase 'Attack/Reload/Move Speed' and specifies icon, color, font weight/size, underline and a single stat entry for AttackSpeed formatted as percentage difference.
[RichTextPanel( @"\b[Aa]ttack/[Rr]eload/[Mm]ove [Ss]peed\b" )]
public class RichTextAttackReloadMoveSpeed : RichTextBase
{
public override string Icon => "";
public override Color Color => new Color(0.5f, 0.7f, 1f);
public override int? FontWeight => 400;
public override float? FontSize => 12;
public override bool Underline => true;
public override Color? UnderlineColor => new Color( 0.3f, 0.5f, 0.8f, 0.3f );
public override RichTextStatEntry[] Stats => [
new(PlayerStat.AttackSpeed, StatFormat.PercentageDiff)
];
}