A RichTextPanel-derived UI class that matches freeze-related words and defines styling and stat entries for those matches. It specifies an icon, colors, text shadow settings, and three PlayerStat entries with display formats.
[RichTextPanel( @"\b([Ff]reez(e|es|ing)|[Ff]rozen)\b" )]
public class RichTextFreeze : RichTextBase
{
public override string Icon => "ac_unit";
public override Color Color => Color.Cyan;
public override float? TextShadowBlur => 3f;
public override Color? TextShadowColor => Color.Cyan.WithAlpha( 0.85f );
public override float? TextShadowOffsetY => -2f;
public override RichTextStatEntry[] Stats => [
new(PlayerStat.ShootFreezeChance, StatFormat.Percentage),
new(PlayerStat.FreezeLifetime, StatFormat.Seconds1),
new(PlayerStat.FreezeTimeScale, StatFormat.PercentageInverse)
];
}