585 {
586 TextWidget bleed_count = TextWidget.Cast(
m_Badges.FindAnyWidget(
"BleedingCount" ) );
587
591 {
595
596 ImageWidget badge_widget
597 Class.CastTo(badge_widget,
m_Badges.FindAnyWidget( badge_name ) );
598 if ( badge_widget )
599 {
600 if ( badge_value > 0 )
601 {
603 {
604 int levelIndex = badge_value - 1;
606 if (maxSupportedIndex >= levelIndex)
607 badge_widget.SetImage(levelIndex);
608 }
609
610 badge_widget.Show( true );
613 {
614 bleed_count.Show( true );
616 }
617 }
618 else
619 {
621 {
622 bleed_count.Show( false );
623 }
624 badge_widget.Show( false );
625 }
626 }
627 }
628 }
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