From 32d56a53bb2babfabb0e295fc987dadd2e378987 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 18:05:10 +0000 Subject: [PATCH] Decompile fn_14984 (EnchantUI::CUIMainPage::Slot16) Batch #5966 by superintelligence: 0 byte-identical, 1 confirmed by peer review. - fn_14984 EnchantUI::CUIMainPage::Slot16: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, KWDev, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Enchant/EnchantUI.h | 4 ++++ Source/UI/Enchant/UIEnchantUI.cpp | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Source/UI/Enchant/EnchantUI.h b/Source/UI/Enchant/EnchantUI.h index 6f444935..41945db8 100644 --- a/Source/UI/Enchant/EnchantUI.h +++ b/Source/UI/Enchant/EnchantUI.h @@ -12,6 +12,7 @@ class CUIStaticText; class CUITextViewer; +class CUITab; struct EnchantInfo; struct EnchantOptionInfo; @@ -129,6 +130,9 @@ class CUIMainPage : public CUIControl { public: /* 0080 */ CUIEnchantPage* firstPage; /* 0084 */ CUIEnchantPage* secondPage; + /* 0088 */ CUITab* tab; + + void Slot16() override; }; class CEnchantItemData { diff --git a/Source/UI/Enchant/UIEnchantUI.cpp b/Source/UI/Enchant/UIEnchantUI.cpp index 227594ac..d6f7c1be 100644 --- a/Source/UI/Enchant/UIEnchantUI.cpp +++ b/Source/UI/Enchant/UIEnchantUI.cpp @@ -340,6 +340,24 @@ void CUIEnchantItem::SetFrozen(bool frozen) { this->itemIcon->Invalidate(); this->name->SetColor(frozen ? 0xAAAAAA : 0xC89682); } + +// OFFSET: 0x00A05860 + +// OFFSET: 0x00A05E20 +// FUNCTION: fn_14984 +void CUIMainPage::Slot16() { + CUITabButton* button = this->tab->FindButton(this->firstPage); + if (button != nullptr) { + button->disabled = 1; + button->Invalidate(); + } + + button = this->tab->FindButton(this->secondPage); + if (button != nullptr) { + button->disabled = 1; + button->Invalidate(); + } +} } // OFFSET: 0x009F3160