ui/richtext/RichTextHpPerKill.cs

A small UI rich text panel class that matches text like "HP per Kill" or "HP/Kill" and sets an icon name. It derives from RichTextBase and specifies an Icon of "restaurant".

using Sandbox;

[RichTextPanel( @"\b([Hh][Pp] [Pp]er [Kk]ill|[Hh][Pp]/[Kk]ill)\b" )]
public class RichTextHpPerKill: RichTextBase
{
	public override string Icon => "restaurant";
}