ui/richtext/RichTextHealthpack.cs

A small RichText panel class that maps healthpack keyword patterns to a health pack icon. It subclasses RichTextBase and sets ImagePath, HideText, and Color to show a green health pack image and hide the matched text.

File Access
using Sandbox;

[RichTextPanel( @"\b[Hh]ealthpacks?\b" )]
public class RichTextHealthpack : RichTextBase
{
	public override string ImagePath => "textures/ui/health_pack.png";
	public override bool HideText => true;

	public override Color Color => Color.Green;
}