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).
This commit is contained in:
ragnarok-clanker 2026-10-30 18:05:10 +00:00
commit 32d56a53bb
2 changed files with 22 additions and 0 deletions

View file

@ -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 {

View file

@ -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