582 {
583 TextWidget bleed_count = TextWidget.Cast(
m_Badges.FindAnyWidget(
"BleedingCount" ) );
584
588 {
592
593 ImageWidget badge_widget
594 Class.CastTo(badge_widget,
m_Badges.FindAnyWidget( badge_name ) );
595 if ( badge_widget )
596 {
597 if ( badge_value > 0 )
598 {
600 {
601 int levelIndex = badge_value - 1;
603 if (maxSupportedIndex >= levelIndex)
604 badge_widget.SetImage(levelIndex);
605 }
606
607 badge_widget.Show( true );
610 {
611 bleed_count.Show( true );
613 }
614 }
615 else
616 {
618 {
619 bleed_count.Show( false );
620 }
621 badge_widget.Show( false );
622 }
623 }
624 }
625 }
const int NTFKEY_BLEEDISH
ref map< int, int > m_BadgesSupportedLevels
ref map< int, int > m_BadgesWidgetDisplay
ref IngameHudVisibility m_HudVisibility
ref map< int, string > m_BadgesWidgetNames