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