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

◆ PreviousTab()

void ScriptedWidgetEventHandler::PreviousTab ( )
inlineprotected

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

417 {
418 int next_index = m_SelectedIndex - 1;
419
420 if ( next_index < 0 )
421 {
422 next_index = m_TabControls.Count() - 1;
423 }
424
425 while ( next_index > 0 && !m_TabControls[next_index].IsVisible() )
426 {
427 next_index--;
428 }
429
430 if ( m_SelectedIndex != next_index )
431 {
432 m_OnAttemptTabSwitch.Invoke( m_SelectedIndex, next_index );
433 if ( CanSwitchTab() )
434 {
435 PerformSwitchTab(next_index);
436 }
437 }
438
439 if ( m_FirstInit )
440 {
441 AlignTabbers();
442 m_FirstInit = false;
443 }
444 }
void PerformSwitchTab(int index)
Определения TabberUI.c:210
int m_SelectedIndex
Определения TabberUI.c:11
void AlignTabbers()
Определения TabberUI.c:108
bool m_FirstInit
Определения TabberUI.c:3
ref ScriptInvoker m_OnAttemptTabSwitch
Определения TabberUI.c:16
bool CanSwitchTab()
Определения TabberUI.c:200
bool IsVisible()
Определения ContextMenu.c:134
ref map< int, Widget > m_TabControls
Определения TabberUI.c:8

Перекрестные ссылки AlignTabbers(), CanSwitchTab(), IsVisible(), m_FirstInit, m_OnAttemptTabSwitch, m_SelectedIndex, m_TabControls и PerformSwitchTab().