ui/richtext/RichTextEnemy.cs

A small UI rich text rule class that highlights the word "enemy" or "enemies". It is annotated with a RichTextPanel attribute giving a regex and sets the Color property to white.

[RichTextPanel( @"\b[Ee]nem(?:y|ies)\b" )]
public class RichTextEnemy : RichTextBase
{
	public override Color Color => new Color( 1f, 1f, 1f );
}