ui/richtext/RichTextHealthpack.cs

A RichText panel component that matches the word "healthpack" or "healthpacks" and replaces it with a health pack icon. It specifies the image path, hides the original text, and sets the tint color to green.

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;
}