Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CGUI::MouseMove( CMouse * pMouse )
- {
- CElement * pDragging = GetMouse()->GetDragging();
- if( !pDragging )
- {
- bool bGotWindow = false;
- for( int iIndex = static_cast<int>( m_vWindows.size() ) - 1; iIndex >= 0; iIndex-- )
- {
- if( !m_vWindows[ iIndex ]->IsVisible() )
- continue;
- int iHeight = 0;
- if( !m_vWindows[ iIndex ]->GetMaximized() )
- iHeight = TITLEBAR_HEIGHT;
- if( !bGotWindow && gpGui->GetMouse()->InArea( m_vWindows[ iIndex ], iHeight ) )
- {
- m_vWindows[ iIndex ]->MouseMove( pMouse );
- bGotWindow = true;
- }
- else
- {
- pMouse->SavePos();
- pMouse->SetPos( -1, -1 );
- m_vWindows[ iIndex ]->MouseMove( pMouse );
- pMouse->LoadPos();
- }
- }
- }
- else
- pDragging->MouseMove( pMouse );
- }
Add Comment
Please, Sign In to add comment