DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ColorHighlight()

void ColorHighlight ( Widget w)
protected

См. определение в файле ServerBrowserTab.c строка 632

633 {
634 if ( w.IsInherited( ButtonWidget ) )
635 {
636 ButtonWidget button = ButtonWidget.Cast( w );
637 button.SetTextColor( ARGB( 255, 200, 0, 0 ) );
638 }
639
640 w.SetColor( ARGB( 255, 0, 0, 0) );
641
642 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
643 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
644 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
645 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
646 Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
647 Widget option_label = w.FindAnyWidget( "option_label" );
648
649 if ( text1 )
650 {
651 text1.SetColor( ARGB( 255, 255, 0, 0 ) );
652 }
653
654 if ( text2 )
655 {
656 text2.SetColor( ARGB( 255, 255, 0, 0 ) );
657 }
658
659 if ( text3 )
660 {
661 text3.SetColor( ARGB( 255, 255, 0, 0 ) );
662 w.SetAlpha(1);
663 }
664
665 if ( image )
666 {
667 image.SetColor( ARGB( 255, 200, 0, 0 ) );
668 }
669
670 if ( option )
671 {
672 option.SetColor( ARGB( 255, 255, 0, 0 ) );
673 }
674
675 if ( option_label )
676 {
677 option_label.SetColor( ARGB( 255, 255, 0, 0 ) );
678 }
679 }
Определения EnWidgets.c:220
Определения EnWidgets.c:190
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB().

Используется в OptionSelectorBase::OnMouseEnter() и ServerBrowserTab::OnMouseEnter().