Ejemplo n.º 1
0
/// Fetches the global UI, taking into consideration active AppWindow.
UserInterface * GlobalUI()
{
	AppWindow * activeWindow = WindowMan.GetCurrentlyActiveWindow();
	if (!activeWindow)
		return NULL;
	return activeWindow->GetGlobalUI();
}
Ejemplo n.º 2
0
/// Fetches either the Global or Active UI, taking into consideration both active AppWindow and if there exist any valid content in the Global UI.
UserInterface * RelevantUI()
{
	AppWindow * window = WindowMan.GetCurrentlyActiveWindow();
	if (!window)
		return NULL;
	UserInterface * globalUI = window->GetGlobalUI();
	if (globalUI && globalUI->HasActivatableElement())
		return globalUI;
	
	return window->GetUI();
}