A RichTextPanel component that recognizes the phrase 'Move Speed' and displays a styled stat entry for the player's move speed multiplier. It defines icon, color, skew, font weight, and a single stat mapping to PlayerStat.MoveSpeedMultiplier with percentage-diff formatting.
[RichTextPanel( @"\b[Mm]ove ?[Ss]peed\b" )]
public class RichTextMoveSpeed : RichTextBase
{
//public override string Icon => "directions_run";
public override string Icon => "";
public override Color Color => new Color( 0.5f, 0.5f, 0.8f );
public override float? SkewX => -8f;
public override int? FontWeight => 500;
public override RichTextStatEntry[] Stats => [
new(PlayerStat.MoveSpeedMultiplier, StatFormat.PercentageDiff)
];
}