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

◆ SelectTabControl()

void ScriptedWidgetEventHandler::SelectTabControl ( int index)
inlineprotected

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

314 {
315 Widget tab_control = m_TabControls.Get( index );
316 if ( tab_control )
317 {
318 /*
319 Widget tab_bg = tab_control.FindAnyWidget( tab_control.GetName() + "_Background" );
320 if( tab_bg )
321 {
322 tab_bg.Show( true );
323 }
324 */
325
326 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget( tab_control.GetName() + "_Title" ));
327
328 int color_title = ARGB(255, 255, 0, 0);
329 int color_backg = ARGB(255, 0, 0 ,0);
330
331 #ifdef PLATFORM_CONSOLE
332 color_title = ARGB(255, 255, 255, 255);
333 color_backg = ARGB(255, 200, 0 ,0);
334 #endif
335
336 tab_title.SetColor( color_title );
337 tab_control.SetColor( color_backg );
338 }
339 }
ref map< int, Widget > m_TabControls
Определения TabberUI.c:8
WorkspaceWidget Widget
Defined in code.
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

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

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