Decompile fn_09903 (UIRefiningWnd::Reset)

Batch #17460 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_09903 UIRefiningWnd::Reset: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, bibinir
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-11-11 23:00:05 +00:00
commit 1321610f7d

View file

@ -158,24 +158,33 @@ __declspec(noinline) void UIRefiningWnd::Reset() {
this->catalystCount = 0;
this->notice->SetNotice("", 0, 0);
this->refiningButton->cost = 0;
this->refiningButton->Invalidate();
this->refiningButton->SetDisabled(1);
this->refiningButton->Invalidate();
{
UIRefining_BtnRefining* button = this->refiningButton;
button->cost = 0;
button->Invalidate();
}
{
UIRefining_BtnRefining* button = this->refiningButton;
button->SetDisabled(1);
button->Invalidate();
}
this->state = 0;
this->result = 7;
this->stateTick = timeGetTime();
this->frame = 0;
if (this->cancelButton) {
this->cancelButton->SetDisabled(0);
this->cancelButton->Invalidate();
if (UIButton* button = this->cancelButton) {
button->SetDisabled(0);
button->Invalidate();
}
this->result = 7;
this->refiningButton->Enable(1);
this->refiningButton->SetDisabled(1);
this->refiningButton->Invalidate();
{
UIRefining_BtnRefining* button = this->refiningButton;
button->SetDisabled(1);
button->Invalidate();
}
this->returnButton->Enable(0);
this->againButton->Enable(0);
this->Invalidate();