mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
done
This commit is contained in:
parent
3fe621d55f
commit
128bb11833
@ -326,7 +326,7 @@ namespace MWGui
|
||||
mScrollBar->eventScrollChangePosition += MyGUI::newDelegate(this, &DialogueWindow::onScrollbarMoved);
|
||||
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);
|
||||
|
||||
mMainWidget->castType<MyGUI::Window>()->eventWindowChangeCoord
|
||||
|
@ -123,9 +123,7 @@ namespace
|
||||
topicsList->eventItemSelected += MyGUI::newDelegate(this, &JournalWindowImpl::notifyTopicSelected);
|
||||
|
||||
{
|
||||
MWGui::BookPage::ClickCallback callback;
|
||||
|
||||
callback = std::bind(&JournalWindowImpl::notifyTopicClicked, this, std::placeholders::_1);
|
||||
auto callback = [&](intptr_t linkId) { JournalWindowImpl::notifyTopicClicked(linkId); };
|
||||
|
||||
getPage(LeftBookPage)->adviseLinkClicked(callback);
|
||||
getPage(RightBookPage)->adviseLinkClicked(callback);
|
||||
@ -137,9 +135,7 @@ namespace
|
||||
}
|
||||
|
||||
{
|
||||
MWGui::BookPage::ClickCallback callback;
|
||||
|
||||
callback = std::bind(&JournalWindowImpl::notifyIndexLinkClicked, this, std::placeholders::_1);
|
||||
auto callback = [&](MWGui::TypesetBook::InteractiveId index) { JournalWindowImpl::notifyIndexLinkClicked(index); };
|
||||
|
||||
getPage(LeftTopicIndex)->adviseLinkClicked(callback);
|
||||
getPage(CenterTopicIndex)->adviseLinkClicked(callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user