diff --git a/Source/UI/UIHotkeyGuideWnd.cpp b/Source/UI/UIHotkeyGuideWnd.cpp index cdaf0698..8778a1b4 100644 --- a/Source/UI/UIHotkeyGuideWnd.cpp +++ b/Source/UI/UIHotkeyGuideWnd.cpp @@ -10,6 +10,7 @@ #include "UI/Buttons/UIBitmapButton.h" #include "UI/Buttons/UIBmpTextButton.h" #include "UI/Buttons/UIButton.h" +#include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" // OFFSET: 0x009663D0 @@ -281,6 +282,25 @@ void UIHotkeyGuideWnd::Slot19() { } } +// OFFSET: 0x0096C260 +// FUNCTION: fn_13167 +int UIHotkeyGuideWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { + if (message == 6) { + if (a == 342) { + UIWindow* window = this->m_frameContext->windows.EnsureWindow(156); + if (window) { + window->SendMsg(this, 22, 1, 0, 0, 0); + } + } + + if (a == 201 || a == 342) { + this->m_frameContext->windows.CloseWindow(303); + } + } + + return this->UIFrameWnd::SendMsg(sender, message, a, b, c, d); +} + // OFFSET: 0x0096C5A0 // FUNCTION: fn_13173 void UIHotkeyGuideWnd::DrawKey(const HotkeyGuideKey* key) { diff --git a/Source/UI/UIHotkeyGuideWnd.h b/Source/UI/UIHotkeyGuideWnd.h index 8fc308a2..591314b1 100644 --- a/Source/UI/UIHotkeyGuideWnd.h +++ b/Source/UI/UIHotkeyGuideWnd.h @@ -49,6 +49,7 @@ public: void Slot15(int width, int height) override; void Slot19() override; void Paint() override; + int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override; void DrawKey(const HotkeyGuideKey* key); void DrawKeyLabel(std::string text, const HotkeyGuideKey* key);