Fixed quest journal opening in locked conversations
This commit is contained in:
parent
9e088bb673
commit
30cdb4cf69
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
Binary file not shown.
BIN
interface/dialoguemenu.swf
(Stored with Git LFS)
BIN
interface/dialoguemenu.swf
(Stored with Git LFS)
Binary file not shown.
@ -22,6 +22,9 @@ auto EventListener::ProcessEvent(
|
|||||||
if (a_event->eventName == "Enderal_OpenHelpURL") {
|
if (a_event->eventName == "Enderal_OpenHelpURL") {
|
||||||
ShowWindow(GetForegroundWindow(), SW_MINIMIZE);
|
ShowWindow(GetForegroundWindow(), SW_MINIMIZE);
|
||||||
ShellExecuteA(NULL, "open", "https://go.eddoursul.win/enderal-se-support", NULL, NULL, SW_SHOWNORMAL);
|
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;
|
return RE::BSEventNotifyControl::kContinue;
|
||||||
@ -42,16 +45,16 @@ auto EventListener::ProcessEvent(
|
|||||||
RE::BSTEventSource<RE::MenuOpenCloseEvent>* a_eventSource)
|
RE::BSTEventSource<RE::MenuOpenCloseEvent>* a_eventSource)
|
||||||
-> RE::BSEventNotifyControl
|
-> RE::BSEventNotifyControl
|
||||||
{
|
{
|
||||||
|
if (a_event->opening && a_event->menuName == RE::JournalMenu::MENU_NAME) {
|
||||||
|
if (RE::UI::GetSingleton()->IsMenuOpen(RE::DialogueMenu::MENU_NAME)) {
|
||||||
if (a_event->menuName == "ContainerMenu") {
|
const auto movie = RE::UI::GetSingleton()->GetMovieView(RE::JournalMenu::MENU_NAME);
|
||||||
#ifdef _DEBUG
|
if (movie) {
|
||||||
SKSE::log::info("MenuOpenCloseEvent");
|
std::array<RE::GFxValue, 2> args;
|
||||||
#endif
|
args[0].SetNumber(2);
|
||||||
|
args[1].SetBoolean(true);
|
||||||
bool bOpening = a_event->opening;
|
movie->Invoke("_root.QuestJournalFader.Menu_mc.RestoreSavedSettings", nullptr, args.data(), static_cast<std::uint32_t>(args.size()));
|
||||||
|
}
|
||||||
//
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return RE::BSEventNotifyControl::kContinue;
|
return RE::BSEventNotifyControl::kContinue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user