From ebc4a46e7616df939b6d81deb6fc3e5b35920cda Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 09:53:57 +0000 Subject: [PATCH] Decompile fn_10394 (UISwapEquipmentWnd::Slot15) Batch #5193 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_10394 UISwapEquipmentWnd::Slot15: logic confirmed by peer review Peer-reviewed-by: meitogi, alisonrag, OvoKore, Bruwuno Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Items/UISwapEquipmentWnd.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Source/UI/Items/UISwapEquipmentWnd.cpp b/Source/UI/Items/UISwapEquipmentWnd.cpp index 7d464975..340aeba0 100644 --- a/Source/UI/Items/UISwapEquipmentWnd.cpp +++ b/Source/UI/Items/UISwapEquipmentWnd.cpp @@ -124,6 +124,27 @@ ITEM_INFO UISwapEquipmentWnd::GetSlotItem(int slot) { } // OFFSET: 0x00830760 +// FUNCTION: fn_10394 +void UISwapEquipmentWnd::Slot15(int width, int height) { + this->m_swapButton = new (std::nothrow) UISwapBitmapButton(*this->m_context, *this->m_controls); + this->m_swapButton->SetBitmap("유저인터페이스\\swap_equipment\\btn_change2_normal.bmp", 0, 0); + this->m_swapButton->SetBitmap("유저인터페이스\\swap_equipment\\btn_change2_over.bmp", 1, 0); + this->m_swapButton->SetBitmap("유저인터페이스\\swap_equipment\\btn_change2_press.bmp", 2, 0); + this->m_swapButton->SetSize(this->m_swapButton->BitmapWidth(), this->m_swapButton->BitmapHeight()); + UISwapBitmapButton* button = this->m_swapButton; + const std::string label = LookupMessage(0xC27); + button->label = label; + this->m_swapButton->m_textColor = 0x172842; + this->m_swapButton->Move(0x51, 0x9B); + this->m_swapButton->SetId(0x1FC); + this->AddChild(this->m_swapButton); + + UIBasicButton* close = new (std::nothrow) UIBasicButton(*this->m_context, *this->m_controls); + close->Configure(0x32, LookupMessage(0xDA)); + close->Move(0xE0, 0x9B); + close->SetId(0xB9); + this->AddChild(close); +} // OFFSET: 0x00830970 // FUNCTION: fn_10395