A small RichText panel class that matches text like "reroll" or "rerolls" and replaces it with an icon. It sets the image path, hides the original text, and assigns a tint color.
using System.Xml.Linq;
[RichTextPanel( @"\b[Rr]eroll-items?\b" )]
public class RichTextRerollItem : RichTextBase
{
public override string ImagePath => "textures/ui/reroll2.png";
public override bool HideText => true;
public override Color Color => new Color( 0.5f, 0.7f, 1f );
}