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