Dims and disabled Goodbye button in dialogs when unavailable.

This commit is contained in:
Digmaster 2014-05-27 00:30:37 -04:00
parent 79d0ed64d9
commit e0d55116a4
2 changed files with 12 additions and 1 deletions

View file

@ -263,7 +263,7 @@ namespace MWClass
if(lockLevel!=0)
ptr.getCellRef().setLockLevel(abs(lockLevel)); //Changes lock to locklevel, in positive
else
ptr.getCellRef().setLockLevel(abs(ptr.getCellRef().getLockLevel())); //No locklevel given, just flip the origional one
ptr.getCellRef().setLockLevel(abs(ptr.getCellRef().getLockLevel())); //No locklevel given, just flip the original one
}
void Container::unlock (const MWWorld::Ptr& ptr) const

View file

@ -509,6 +509,17 @@ namespace MWGui
// no scrollbar
onScrollbarMoved(mScrollBar, 0);
}
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);
}
}
void DialogueWindow::notifyLinkClicked (TypesetBook::InteractiveId link)