A UI rich text panel definition that highlights words like 'ignite', 'fires', 'flammable'. It sets an icon, color, text shadow properties, and a single stat entry showing the player's chance to ignite on shoot formatted as a percentage.
[RichTextPanel( @"\b([Ii]gnite[sd]?|[Ff]ires?|[Ff]lammable)\b" )]
public class RichTextIgnite : RichTextBase
{
public override string Icon => "local_fire_department";
public override Color Color => Color.Orange;
public override float? TextShadowBlur => 3f;
public override Color? TextShadowColor => Color.Orange.WithAlpha( 0.65f );
public override float? TextShadowOffsetY => -2f;
public override RichTextStatEntry[] Stats => [
new(PlayerStat.ShootFireIgniteChance, StatFormat.Percentage)
];
}