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

◆ NextTab()

void ScriptedWidgetEventHandler::NextTab ( )
inlineprotected

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

387 {
388 int next_index = m_SelectedIndex + 1;
389
390 while ( next_index < m_Tabs.Count() && !m_TabControls[next_index].IsVisible() )
391 {
392 next_index++;
393 }
394
395 if ( next_index >= m_Tabs.Count() )
396 {
397 next_index = 0;
398 }
399
400 if ( m_SelectedIndex != next_index )
401 {
402 m_OnAttemptTabSwitch.Invoke( m_SelectedIndex, next_index );
403 if ( CanSwitchTab() )
404 {
405 PerformSwitchTab(next_index);
406 }
407 }
408
409 if ( m_FirstInit )
410 {
411 AlignTabbers();
412 m_FirstInit = false;
413 }
414 }
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 map< int, Widget > m_Tabs
Определения TabberUI.c:9
ref ScriptInvoker m_OnAttemptTabSwitch
Определения TabberUI.c:16
bool CanSwitchTab()
Определения TabberUI.c:200
ref map< int, Widget > m_TabControls
Определения TabberUI.c:8

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