mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 14:41:34 +00:00
done
This commit is contained in:
parent
3fe621d55f
commit
128bb11833
2 changed files with 3 additions and 7 deletions
|
@ -326,7 +326,7 @@ namespace MWGui
|
||||||
mScrollBar->eventScrollChangePosition += MyGUI::newDelegate(this, &DialogueWindow::onScrollbarMoved);
|
mScrollBar->eventScrollChangePosition += MyGUI::newDelegate(this, &DialogueWindow::onScrollbarMoved);
|
||||||
mHistory->eventMouseWheel += MyGUI::newDelegate(this, &DialogueWindow::onMouseWheel);
|
mHistory->eventMouseWheel += MyGUI::newDelegate(this, &DialogueWindow::onMouseWheel);
|
||||||
|
|
||||||
BookPage::ClickCallback callback = std::bind(&DialogueWindow::notifyLinkClicked, this, std::placeholders::_1);
|
auto callback = [&](TypesetBook::InteractiveId link) { DialogueWindow::notifyLinkClicked(link); };
|
||||||
mHistory->adviseLinkClicked(callback);
|
mHistory->adviseLinkClicked(callback);
|
||||||
|
|
||||||
mMainWidget->castType<MyGUI::Window>()->eventWindowChangeCoord
|
mMainWidget->castType<MyGUI::Window>()->eventWindowChangeCoord
|
||||||
|
|
|
@ -123,9 +123,7 @@ namespace
|
||||||
topicsList->eventItemSelected += MyGUI::newDelegate(this, &JournalWindowImpl::notifyTopicSelected);
|
topicsList->eventItemSelected += MyGUI::newDelegate(this, &JournalWindowImpl::notifyTopicSelected);
|
||||||
|
|
||||||
{
|
{
|
||||||
MWGui::BookPage::ClickCallback callback;
|
auto callback = [&](intptr_t linkId) { JournalWindowImpl::notifyTopicClicked(linkId); };
|
||||||
|
|
||||||
callback = std::bind(&JournalWindowImpl::notifyTopicClicked, this, std::placeholders::_1);
|
|
||||||
|
|
||||||
getPage(LeftBookPage)->adviseLinkClicked(callback);
|
getPage(LeftBookPage)->adviseLinkClicked(callback);
|
||||||
getPage(RightBookPage)->adviseLinkClicked(callback);
|
getPage(RightBookPage)->adviseLinkClicked(callback);
|
||||||
|
@ -137,9 +135,7 @@ namespace
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
MWGui::BookPage::ClickCallback callback;
|
auto callback = [&](MWGui::TypesetBook::InteractiveId index) { JournalWindowImpl::notifyIndexLinkClicked(index); };
|
||||||
|
|
||||||
callback = std::bind(&JournalWindowImpl::notifyIndexLinkClicked, this, std::placeholders::_1);
|
|
||||||
|
|
||||||
getPage(LeftTopicIndex)->adviseLinkClicked(callback);
|
getPage(LeftTopicIndex)->adviseLinkClicked(callback);
|
||||||
getPage(CenterTopicIndex)->adviseLinkClicked(callback);
|
getPage(CenterTopicIndex)->adviseLinkClicked(callback);
|
||||||
|
|
Loading…
Reference in a new issue