bool OpenGLGUI::IsMouseInteractingWithGUIComponent(bool ignoreGUIWindows) const { Component* lCurrentComponent = SelectionManager::GetInstance()->GetCurrentComponent(); if(lCurrentComponent != 0 && lCurrentComponent->IsVisible() && (ignoreGUIWindows == true ? lCurrentComponent->GetComponentType() != EComponentType_GUIWindow : true)) { return true; } return false; }