A UI rich text panel definition that highlights freeze-related text. It sets an icon, color, text shadow properties, and a list of player stat entries to display.
[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)
];
}