ui/richtext/RichTextMagnet.cs

A RichText panel class for the UI that matches the word "magnet" or "magnetize" in rich text and sets styling. It defines the panel color and optional text shadow color, blur and vertical offset.

[RichTextPanel( @"\b[Mm]agnet(?:ize)?\b" )]
public class RichTextMagnet : RichTextBase
{
	public override Color Color => Color.White;

	public override Color? TextShadowColor => new Color( 0.5f, 0.5f, 1f, 0.5f );
	public override float? TextShadowBlur => 3f;
	public override float? TextShadowOffsetY => -3f;
}