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:
parent
6327779734
commit
388b35eace
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ public:
|
|||
void Slot11() override;
|
||||
void Slot19() override;
|
||||
void Paint() override;
|
||||
int ButtonX(UIBitmapButton* button);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue