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

◆ ColorNormal() [2/2]

override void ServerBrowserTab::ColorNormal ( Widget w)
inlineprotected

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

845 {
846 if ( !w )
847 {
848 return
849 }
850
851 if ( (w.GetFlags() & WidgetFlags.IGNOREPOINTER) == WidgetFlags.IGNOREPOINTER )
852 {
853 return;
854 }
855
856 if ( w.IsInherited( ButtonWidget ) )
857 {
858 ButtonWidget button = ButtonWidget.Cast( w );
859 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
860 }
861 else if ( !w.IsInherited( EditBoxWidget ) )
862 {
863 w.SetColor( ARGB( 0, 255, 255, 255 ) );
864 }
865
866 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
867 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
868 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
869 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
870
871 Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
872
873 if ( text1 )
874 {
875 text1.SetColor( ARGB( 255, 255, 255, 255 ) );
876 }
877
878 if ( text2 )
879 {
880 text2.SetColor( ARGB( 255, 255, 255, 255 ) );
881 }
882
883 if ( text3 )
884 {
885 text3.SetColor( ARGB( 255, 255, 255, 255 ) );
886 w.SetAlpha(0);
887 }
888
889 if ( image )
890 {
891 image.SetColor( ARGB( 255, 255, 255, 255 ) );
892 }
893
894 if ( option )
895 {
896 option.SetColor( ARGB( 150, 255, 255, 255 ) );
897 }
898 }
WidgetFlags
Определения EnWidgets.c:58
WorkspaceWidget Widget
Defined in code.
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

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