forked from teamnwah/openmw-tes3coop
Dims and disabled Goodbye button in dialogs when unavailable.
This commit is contained in:
parent
79d0ed64d9
commit
e0d55116a4
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue