ui/richtext/RichTextEnemy.cs

A small UI rich text rule class that highlights the word 'enemy' or 'enemies'. It applies a white color to matching text by extending RichTextBase and using a RichTextPanel attribute with a regex pattern.

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