From 78afd8c2c8942873c916af1f6b960048b3fe7be9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 23:26:15 +0000 Subject: [PATCH] Decompile fn_11454 (UIItemMoveInfo::Slot28) Batch #1901 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_11454 UIItemMoveInfo::Slot28: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/UI/Buttons/UIItemMoveInfo.h | 18 ++++++++++++++++++ Source/UI/Buttons/UITextButton.cpp | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 Source/UI/Buttons/UIItemMoveInfo.h diff --git a/Source/UI/Buttons/UIItemMoveInfo.h b/Source/UI/Buttons/UIItemMoveInfo.h new file mode 100644 index 0000000..6c24459 --- /dev/null +++ b/Source/UI/Buttons/UIItemMoveInfo.h @@ -0,0 +1,18 @@ +#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UIITEMMOVEINFO_H +#define RAGNAROK_SOURCE_UI_BUTTONS_UIITEMMOVEINFO_H + +#include "UI/Buttons/UITextButton.h" +#include "UI/Window/WindowManagerWindows.h" + +class UIItemMoveInfo : public UITextButton { +public: + void Slot28(int x, int y) override; + +protected: + /* 00F8 */ int m_moveIndex; + +private: + WindowManagerWindows* m_windows; +}; + +#endif diff --git a/Source/UI/Buttons/UITextButton.cpp b/Source/UI/Buttons/UITextButton.cpp index 69f97e0..be7d187 100644 --- a/Source/UI/Buttons/UITextButton.cpp +++ b/Source/UI/Buttons/UITextButton.cpp @@ -4,6 +4,7 @@ #include "Render/Text/TextContext.h" #include "UI/Window/UIWindowMgr.h" #include "UI/Buttons/UIItemTagButton.h" +#include "UI/Buttons/UIItemMoveInfo.h" #include "UI/Buttons/UITextButton.h" #include "UI/Lists/UIImgMenu.h" #include "UI/Lists/UITabControl.h" @@ -286,6 +287,11 @@ void UIINT64BarGraph::Slot28(int, int) { this->m_controls->services.Tooltip(text, screenX, screenY, -1, false, true); } +// OFFSET: 0x00891A40 +// FUNCTION: fn_11454 +void UIItemMoveInfo::Slot28(int, int) { + this->m_windows->EnsureWindow(276)->SendMsg(nullptr, 147, this->m_moveIndex, 0, 0, 0); +} // OFFSET: 0x00891A10