ui/richtext/RichTextBomb.cs

A small RichText element class for the UI that matches the word "bomb" or "bombs" and replaces it with an icon. It specifies an image path and hides the matched text.

[RichTextPanel( @"\b[Bb]ombs?\b" )]
public class RichTextBomb : RichTextBase
{
	public override string ImagePath => "textures/ui/bomb.png";

	public override bool HideText => true;
}