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).
This commit is contained in:
ragnarok-clanker 2026-10-30 16:06:50 +00:00
commit 94d0c4fdff

View file

@ -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<const ModeDragState*>(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<WindowVisibility&>(g_windowMgr).Show(15, 1);
g_windowMgr.window_01EC->SendMsg(nullptr, 13, 13, 0, 0, 0);
}
// OFFSET: 0x007FF4A0