A UI rich text panel definition that matches phrases like 'Bullet Damage' or 'Bullet Dmg'. It supplies an icon path, forces the icon to prepend, overrides the text to 'dmg', sets a white color, and lists two player stats to display (BulletDamage with one decimal and BulletDamageMultiplier as a percentage).
[RichTextPanel( @"\b[Bb]ullet ([Dd]amage|[Dd]mg)\b" )]
public class RichTextBulletDamage : RichTextBase
{
public override string ImagePath => "textures/ui/bullet-icon.png";
public override bool PrependIcon => true;
public override string TextOverride => "dmg";
public override Color Color => new Color( 1f, 1f, 1f );
public override RichTextStatEntry[] Stats => [
new(PlayerStat.BulletDamage, StatFormat.Decimals1),
new(PlayerStat.BulletDamageMultiplier, StatFormat.Percentage)
];
}