Decompile fn_10217 (UIRuneSetList::OnWheel)
Batch #16352 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_10217 UIRuneSetList::OnWheel: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, Toshiro 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
5de6d91f4f
commit
0b2270a810
1 changed files with 1 additions and 13 deletions
|
|
@ -485,19 +485,7 @@ void UIRuneSystemWnd::OnProcess() {
|
|||
// OFFSET: 0x0081CF10
|
||||
// FUNCTION: fn_10217
|
||||
void UIRuneSetList::OnWheel(int delta) {
|
||||
const int previous = this->position;
|
||||
int next = previous + (delta < 0 ? 1 : -1);
|
||||
if (next < 0) {
|
||||
next = 0;
|
||||
}
|
||||
if (next > this->maximum) {
|
||||
next = this->maximum;
|
||||
}
|
||||
|
||||
this->position = next;
|
||||
if (previous != next) {
|
||||
this->Invalidate();
|
||||
}
|
||||
this->ScrollBy(2 * (delta < 0) - 1);
|
||||
}
|
||||
|
||||
// OFFSET: 0x0081D460
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue