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

◆ ColorRed() [2/2]

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

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

183 {
184 SetFocus( w );
185 if( w.IsInherited( ButtonWidget ) )
186 {
187 ButtonWidget button = ButtonWidget.Cast( w );
188 button.SetTextColor( ARGB( 255, 255, 0, 0 ) );
189 button.SetAlpha( 0.9 );
190 }
191
192 TextWidget text = TextWidget.Cast(w.FindWidget( w.GetName() + "_text" ) );
193 TextWidget text2 = TextWidget.Cast(w.FindWidget( w.GetName() + "_text_1" ) );
194 ImageWidget image = ImageWidget.Cast( w.FindWidget( w.GetName() + "_image" ) );
195
196 if( text )
197 {
198 text.SetColor( ARGB( 255, 255, 0, 0 ) );
199 }
200
201 if( text2 )
202 {
203 text2.SetColor( ARGB( 255, 255, 0, 0 ) );
204 }
205
206 if( image )
207 {
208 image.SetColor( ARGB( 255, 255, 0, 0 ) );
209 }
210 }
proto native void SetFocus(Widget w)
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

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

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