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).
This commit is contained in:
ragnarok-clanker 2026-10-30 11:37:33 +00:00
commit 36364f9c5a
2 changed files with 21 additions and 0 deletions

View file

@ -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) {