mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
Disable topics list visually when in a choice
This commit is contained in:
parent
e9ed0211c9
commit
7c52d05f85
1 changed files with 5 additions and 7 deletions
|
@ -562,12 +562,11 @@ namespace MWGui
|
||||||
|
|
||||||
MyGUI::Button* byeButton;
|
MyGUI::Button* byeButton;
|
||||||
getWidget(byeButton, "ByeButton");
|
getWidget(byeButton, "ByeButton");
|
||||||
if(MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye) {
|
bool goodbyeEnabled = !MWBase::Environment::get().getDialogueManager()->isInChoice() || mGoodbye;
|
||||||
byeButton->setEnabled(false);
|
byeButton->setEnabled(goodbyeEnabled);
|
||||||
}
|
|
||||||
else {
|
bool topicsEnabled = !MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye;
|
||||||
byeButton->setEnabled(true);
|
mTopicsList->setEnabled(topicsEnabled);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogueWindow::notifyLinkClicked (TypesetBook::InteractiveId link)
|
void DialogueWindow::notifyLinkClicked (TypesetBook::InteractiveId link)
|
||||||
|
@ -657,7 +656,6 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mLinks.push_back(new Goodbye());
|
mLinks.push_back(new Goodbye());
|
||||||
mGoodbye = true;
|
mGoodbye = true;
|
||||||
mTopicsList->setEnabled(false);
|
|
||||||
mEnabled = false;
|
mEnabled = false;
|
||||||
updateHistory();
|
updateHistory();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue