mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-03 12:45:38 +00:00
Fixes issue with pressing f1 in QuickKey menu, removed transparency in GoodBye button
This commit is contained in:
parent
a5cfa8a049
commit
03d7137655
2 changed files with 6 additions and 4 deletions
|
@ -518,11 +518,9 @@ namespace MWGui
|
|||
MyGUI::Button* byeButton;
|
||||
getWidget(byeButton, "ByeButton");
|
||||
if(MWBase::Environment::get().getDialogueManager()->isInChoice()) {
|
||||
byeButton->setAlpha(.2);
|
||||
byeButton->setEnabled(false);
|
||||
}
|
||||
else {
|
||||
byeButton->setAlpha(1);
|
||||
byeButton->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -791,8 +791,12 @@ namespace MWInput
|
|||
if (!MWBase::Environment::get().getWindowManager()->isGuiMode ()
|
||||
&& MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate")==-1)
|
||||
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_QuickKeysMenu);
|
||||
else if (MWBase::Environment::get().getWindowManager()->getMode () == MWGui::GM_QuickKeysMenu)
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode (MWGui::GM_QuickKeysMenu);
|
||||
else if (MWBase::Environment::get().getWindowManager()->getMode () == MWGui::GM_QuickKeysMenu) {
|
||||
while(MyGUI::InputManager::getInstance().isModalAny()) { //Handle any open Modal windows
|
||||
MWBase::Environment::get().getWindowManager()->getCurrentModal()->exit();
|
||||
}
|
||||
MWBase::Environment::get().getWindowManager()->exitCurrentGuiMode(); //And handle the actual main window
|
||||
}
|
||||
}
|
||||
|
||||
void InputManager::activate()
|
||||
|
|
Loading…
Reference in a new issue