diff --git a/SKSE/Plugins/EnderalSE.dll b/SKSE/Plugins/EnderalSE.dll index c148c46a..c50ae351 100644 --- a/SKSE/Plugins/EnderalSE.dll +++ b/SKSE/Plugins/EnderalSE.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d9b80af8fee490ef4879cfbe172d9c3b6e4fe989d17555c03e0dbf145e41f81e -size 630272 +oid sha256:339403c800358d36bdcf4e0f8d2bc4503135d6e16a64405994f026e328168c4f +size 632320 diff --git a/interface/dialoguemenu.swf b/interface/dialoguemenu.swf index c0f951b5..e85d0f95 100644 --- a/interface/dialoguemenu.swf +++ b/interface/dialoguemenu.swf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e8a0091104d54e023bd4902f8c3510caaff2ec1fd409d04237af12d128530e4d -size 24622 +oid sha256:301b8c7e99fc049a1b38c57ecd907583a977863be9ab5dcfee2d4cca2d9da3a2 +size 24628 diff --git a/source/Enderal DLL/src/EventListener.cpp b/source/Enderal DLL/src/EventListener.cpp index 7b54d8b4..ca90a8df 100644 --- a/source/Enderal DLL/src/EventListener.cpp +++ b/source/Enderal DLL/src/EventListener.cpp @@ -22,6 +22,9 @@ auto EventListener::ProcessEvent( if (a_event->eventName == "Enderal_OpenHelpURL") { ShowWindow(GetForegroundWindow(), SW_MINIMIZE); ShellExecuteA(NULL, "open", "https://go.eddoursul.win/enderal-se-support", NULL, NULL, SW_SHOWNORMAL); + + //} else if (a_event->eventName == "Enderal_OpenQuestJournal") { + // RE::UIMessageQueue::GetSingleton()->AddMessage(RE::InterfaceStrings::GetSingleton()->journalMenu, RE::UI_MESSAGE_TYPE::kShow, 0i64); } return RE::BSEventNotifyControl::kContinue; @@ -42,16 +45,16 @@ auto EventListener::ProcessEvent( RE::BSTEventSource* a_eventSource) -> RE::BSEventNotifyControl { - - - if (a_event->menuName == "ContainerMenu") { - #ifdef _DEBUG - SKSE::log::info("MenuOpenCloseEvent"); - #endif - - bool bOpening = a_event->opening; - - // + if (a_event->opening && a_event->menuName == RE::JournalMenu::MENU_NAME) { + if (RE::UI::GetSingleton()->IsMenuOpen(RE::DialogueMenu::MENU_NAME)) { + const auto movie = RE::UI::GetSingleton()->GetMovieView(RE::JournalMenu::MENU_NAME); + if (movie) { + std::array args; + args[0].SetNumber(2); + args[1].SetBoolean(true); + movie->Invoke("_root.QuestJournalFader.Menu_mc.RestoreSavedSettings", nullptr, args.data(), static_cast(args.size())); + } + } } return RE::BSEventNotifyControl::kContinue;