|
|
|
@ -477,22 +477,25 @@ namespace MWInput
|
|
|
|
|
|
|
|
|
|
void ActionManager::showQuickKeysMenu()
|
|
|
|
|
{
|
|
|
|
|
if (!MWBase::Environment::get().getWindowManager()->isGuiMode ()
|
|
|
|
|
&& MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate")==-1)
|
|
|
|
|
{
|
|
|
|
|
if (!checkAllowedToUseItems())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_QuickKeysMenu);
|
|
|
|
|
}
|
|
|
|
|
else if (MWBase::Environment::get().getWindowManager()->getMode () == MWGui::GM_QuickKeysMenu)
|
|
|
|
|
if (MWBase::Environment::get().getWindowManager()->getMode () == MWGui::GM_QuickKeysMenu)
|
|
|
|
|
{
|
|
|
|
|
//Handle any open Modal windows
|
|
|
|
|
while (MyGUI::InputManager::getInstance().isModalAny())
|
|
|
|
|
{ //Handle any open Modal windows
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->exitCurrentModal();
|
|
|
|
|
}
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->exitCurrentGuiMode(); //And handle the actual main window
|
|
|
|
|
//And handle the actual main window
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->exitCurrentGuiMode();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate") != -1)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!checkAllowedToUseItems())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_QuickKeysMenu);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ActionManager::activate()
|
|
|
|
|