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

◆ ColorWhite() [2/2]

void ScriptedWidgetEventHandler::ColorWhite ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

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

213 {
214 if( w.IsInherited( ButtonWidget ) )
215 {
216 ButtonWidget button = ButtonWidget.Cast( w );
217 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
218 button.SetAlpha( 0.75 );
219 }
220
221 TextWidget text = TextWidget.Cast(w.FindWidget( w.GetName() + "_text" ) );
222 TextWidget text2 = TextWidget.Cast(w.FindWidget( w.GetName() + "_text_1" ) );
223 ImageWidget image = ImageWidget.Cast( w.FindWidget( w.GetName() + "_image" ) );
224
225 if( text )
226 {
227 text.SetColor( ARGB( 255, 255, 255, 255 ) );
228 }
229
230 if( text2 )
231 {
232 text2.SetColor( ARGB( 255, 255, 255, 255 ) );
233 }
234
235 if( image )
236 {
237 image.SetColor( ARGB( 255, 255, 255, 255 ) );
238 }
239 }
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

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

Используется в OnFocusLost() и OnMouseLeave().