From 359512c225b9b3433dfacc8bb13dccb2548d8028 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 12:36:07 +0000 Subject: [PATCH] Decompile 6 functions in Source/UI/Edit/UIEditCtrl.cpp, Source/UI/Buttons/UINaviLinkButton.h, ... Batch #1403 by Yommy: 0 byte-identical, 6 confirmed by peer review. - fn_10764 UINaviLinkButton::Link: logic confirmed by peer review - fn_10765 UISpriteButton::FrameHeight: logic confirmed by peer review - fn_10766 UISpriteButton::FrameWidth: logic confirmed by peer review - fn_13364 UIMerchantItemMyShopWnd::Slot25: logic confirmed by peer review - fn_13386 UIItemWnd::Slot19: logic confirmed by peer review - fn_13390 UINoticeMessageBox_LockSellItem::Slot19: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/UI/Edit/UIEditCtrl.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index e5c8a1c9..a0f2a26c 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -597,10 +597,26 @@ void UIEditCtrl::MoveReadingWindow(int x) { } // OFFSET: 0x00858B80 +// FUNCTION: fn_10764 +std::string UINaviLinkButton::Link() { + return this->link; +} // OFFSET: 0x00858BE0 +// FUNCTION: fn_10765 +int UISpriteButton::FrameHeight(int action, int frame) { + auto* sprite = static_cast(ResourceMgr::Instance().Load(this->spriteName.c_str())); + auto* actions = static_cast(ResourceMgr::Instance().Load(this->actionName.c_str())); + return sprite->images[0][actions->Frame(action, frame).cells[0].image]->height; +} // OFFSET: 0x00858C50 +// FUNCTION: fn_10766 +int UISpriteButton::FrameWidth(int action, int frame) { + auto* sprite = static_cast(ResourceMgr::Instance().Load(this->spriteName.c_str())); + auto* actions = static_cast(ResourceMgr::Instance().Load(this->actionName.c_str())); + return sprite->images[0][actions->Frame(action, frame).cells[0].image]->width; +} // OFFSET: 0x0097E3E0 // FUNCTION: fn_13327 @@ -620,8 +636,20 @@ void UIItemStoreSubWnd::Slot26(int, int) { } // OFFSET: 0x00985380 +// FUNCTION: fn_13364 +void UIMerchantItemMyShopWnd::Slot25(int x, int y) { + if (y < 17) { + UIItemBaseWnd::Slot25(x, y); + } +} // OFFSET: 0x009886C0 +// FUNCTION: fn_13386 +void UIItemWnd::Slot19() { + if (this->unknown_0128) { + this->unknown_0128->Slot19(); + } +} // OFFSET: 0x009886D0 // FUNCTION: fn_13387 @@ -636,6 +664,12 @@ void UIMerchantItemShopWnd::Slot19() { } // OFFSET: 0x00988C20 +// FUNCTION: fn_13390 +void UINoticeMessageBox_LockSellItem::Slot19() { + if (this->startTick + this->duration < timeGetTime()) { + this->SendMsg(this, 6, 201, 0, 0, 0); + } +} // OFFSET: 0x0098A220 // FUNCTION: fn_13407