From 94d0c4fdff2b6269fa478f66ebb05fa371602747 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 16:06:50 +0000 Subject: [PATCH] Decompile fn_10000 (UIRodexComposeWnd::Slot10) Batch #5827 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_10000 UIRodexComposeWnd::Slot10: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Rodex/UIRodexComposeWnd.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Source/UI/Rodex/UIRodexComposeWnd.cpp b/Source/UI/Rodex/UIRodexComposeWnd.cpp index c478e373..088133b8 100644 --- a/Source/UI/Rodex/UIRodexComposeWnd.cpp +++ b/Source/UI/Rodex/UIRodexComposeWnd.cpp @@ -155,5 +155,27 @@ void UIRodexComposeWnd::SetRecipient(int id, unsigned short job, unsigned short } // OFFSET: 0x007FF400 +// FUNCTION: fn_10000 +void UIRodexComposeWnd::Slot10(int x, int y, std::intptr_t value) { + if (!g_windowMgr.unknown_0458) { + UIWindow::Slot10(x, y, value); + return; + } + + CMode* mode = g_modeMgr.GetGameMode(); + const ModeDragState* drag = reinterpret_cast(value); + if (drag->source != 1) { + mode->SendMsg(18, 0, 0, 0, 0); + return; + } + + if (drag->quantity == 1) { + this->SendMsg(nullptr, 38, 0, 0, 0, 0); + return; + } + + reinterpret_cast(g_windowMgr).Show(15, 1); + g_windowMgr.window_01EC->SendMsg(nullptr, 13, 13, 0, 0, 0); +} // OFFSET: 0x007FF4A0