A RichText panel component that matches text like "Regen" and displays a health-regen icon, color, and a single stat entry for HpRegenDisplay formatted per-second. It inherits from RichTextBase and provides Icon, Color and Stats properties.
[RichTextPanel( @"\b[Rr]egen\b" )]
public class RichTextHpRegen : RichTextBase
{
public override string Icon => "medication";
public override Color Color => new Color( 0.75f, 1f, 0.75f );
// todo: remove all this
public override RichTextStatEntry[] Stats => [
new(PlayerStat.HpRegenDisplay, StatFormat.PerSecond2)
];
}