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

◆ OnMouseButtonUp() [13/13]

override bool ScriptedWidgetEventHandler::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

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

266 {
267 if ( button == MouseState.LEFT )
268 {
269 int index = m_TabControls.GetKeyByValue( w );
270 if ( m_SelectedIndex != index )
271 {
272 m_OnAttemptTabSwitch.Invoke( m_SelectedIndex, index );
273 if ( CanSwitchTab() )
274 {
275 PerformSwitchTab(index);
276
277 return true;
278 }
279 }
280 }
281
282 return false;
283 }
void PerformSwitchTab(int index)
Определения TabberUI.c:210
int m_SelectedIndex
Определения TabberUI.c:11
ref ScriptInvoker m_OnAttemptTabSwitch
Определения TabberUI.c:16
bool CanSwitchTab()
Определения TabberUI.c:200
ref map< int, Widget > m_TabControls
Определения TabberUI.c:8
MouseState
Определения EnSystem.c:311

Перекрестные ссылки CanSwitchTab(), m_OnAttemptTabSwitch, m_SelectedIndex, m_TabControls, PerformSwitchTab(), x и y.