746 {
747 if ( !w )
748 {
749 return
750 }
751
753 {
754 return;
755 }
756
757 if ( w.IsInherited( ButtonWidget ) )
758 {
759 ButtonWidget button = ButtonWidget.Cast( w );
760 button.SetTextColor(
ARGB( 255, 255, 255, 255 ) );
761 }
762 else if ( !w.IsInherited( EditBoxWidget ) )
763 {
764 w.SetColor(
ARGB( 0, 255, 255, 255 ) );
765 }
766
767 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
768 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
769 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
770 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
771
772 Widget option =
Widget.Cast( w.FindAnyWidget( w.GetName() +
"_option_wrapper" ) );
773
774 if ( text1 )
775 {
776 text1.SetColor(
ARGB( 255, 255, 255, 255 ) );
777 }
778
779 if ( text2 )
780 {
781 text2.SetColor(
ARGB( 255, 255, 255, 255 ) );
782 }
783
784 if ( text3 )
785 {
786 text3.SetColor(
ARGB( 255, 255, 255, 255 ) );
787 w.SetAlpha(0);
788 }
789
790 if ( image )
791 {
792 image.SetColor(
ARGB( 255, 255, 255, 255 ) );
793 }
794
795 if ( option )
796 {
797 option.SetColor(
ARGB( 150, 255, 255, 255 ) );
798 }
799 }
int ARGB(int a, int r, int g, int b)