From 36364f9c5aac0e67cfcfeb71813ee5a53ed889d0 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 11:37:33 +0000 Subject: [PATCH] Decompile fn_13167 (UIHotkeyGuideWnd::SendMsg) Batch #5425 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_13167 UIHotkeyGuideWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: willerthal, Bruwuno Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/UIHotkeyGuideWnd.cpp | 20 ++++++++++++++++++++ Source/UI/UIHotkeyGuideWnd.h | 1 + 2 files changed, 21 insertions(+) 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);