simplify_debugging
smilczek 2 years ago
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…
Cancel
Save