forked from mirror/openmw-tes3mp
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)
|
if(lockLevel!=0)
|
||||||
ptr.getCellRef().setLockLevel(abs(lockLevel)); //Changes lock to locklevel, in positive
|
ptr.getCellRef().setLockLevel(abs(lockLevel)); //Changes lock to locklevel, in positive
|
||||||
else
|
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
|
void Container::unlock (const MWWorld::Ptr& ptr) const
|
||||||
|
|
|
@ -509,6 +509,17 @@ namespace MWGui
|
||||||
// no scrollbar
|
// no scrollbar
|
||||||
onScrollbarMoved(mScrollBar, 0);
|
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)
|
void DialogueWindow::notifyLinkClicked (TypesetBook::InteractiveId link)
|
||||||
|
|
Loading…
Reference in a new issue