Decompile fn_12121 (UISayDialogWnd::ButtonX)

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

- fn_12121 UISayDialogWnd::ButtonX: logic confirmed by peer review

Peer-reviewed-by: eAthena, alisonrag, KWDev
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-31 20:12:39 +00:00
commit 388b35eace
2 changed files with 11 additions and 0 deletions

View file

@ -3199,6 +3199,16 @@ void UInCashWnd::Slot35(int delta) {
}
// OFFSET: 0x008D7660
// FUNCTION: fn_12121
int UISayDialogWnd::ButtonX(UIBitmapButton* button) {
int x = this->geometry.width - 4;
for (UIWindow* other : this->m_buttons) {
if (button != other) {
x += -4 - static_cast<UIBitmapButton*>(other)->BitmapWidth();
}
}
return x - button->BitmapWidth();
}
// OFFSET: 0x008FFBE0
// FUNCTION: fn_12363

View file

@ -23,6 +23,7 @@ public:
void Slot11() override;
void Slot19() override;
void Paint() override;
int ButtonX(UIBitmapButton* button);
};
#endif