ui/richtext/RichTextDie.cs

A RichText panel class that matches the words "Die" or "Dying" and applies styling for death-related text. It sets text color, shadow color/blur/offset, and stroke width/color for matched text.

Reflection
[RichTextPanel( @"\b[Dd](ie|ying)\b" )]
public class RichTextDie : RichTextBase
{
	public override Color Color => new Color( 0.1f, 0.1f, 0.1f );

	//public override float? TextShadowBlur => 4;
	//public override Color? TextShadowColor => Color.White.WithAlpha( 2f );
	//public override float? TextShadowOffsetY => -1f;

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

	public override float? TextStrokeWidth => 2f;
	public override Color? TextStrokeColor => Color.Red.Saturate( 0.4f ).WithAlpha( 0.5f );
}