rodecomp/Source/UI/UIBartermarketWnd.cpp
ragnarok-clanker e1aaac1261 Decompile 2 functions in Source/UI/UIBartermarketWnd.cpp, Source/UI/UIBartermarketWnd.h
Batch #3771 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_10594 UIExpandedBarterItemPurchaseWnd::Slot35: logic confirmed by peer review
- fn_10595 UIExpandedBartermarketWnd::Slot35: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, youko
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/UI/UIBartermarketWnd.cpp
2026-10-29 23:18:53 +00:00

36 lines
874 B
C++

#include "UI/UIBartermarketWnd.h"
#include "Client/Mode/CMode.h"
#include "Client/Mode/ModeDragState.h"
#include "Client/Mode/ModeMgr.h"
#include "Client/Session.h"
#include "UI/Shortcuts/ShortcutVisibility.h"
#include "UI/Window/UIWindowMgr.h"
// OFFSET: 0x00845940
// OFFSET: 0x008459F0
// OFFSET: 0x00849030
// FUNCTION: fn_10594
void UIExpandedBarterItemPurchaseWnd::Slot35(int delta) {
if (this->scrollEnabled == 1) {
int step = this->rowCount - 1;
if (step > 3) {
step = 3;
}
this->SendMsg(this->scrollBar, 7, delta > 0 ? -step : step, 0, 0, 0);
}
}
// OFFSET: 0x00849080
// FUNCTION: fn_10595
void UIExpandedBartermarketWnd::Slot35(int delta) {
if (this->scrollEnabled == 1) {
int step = this->rowCount - 1;
if (step > 3) {
step = 3;
}
this->SendMsg(this->scrollBar, 7, delta > 0 ? -step : step, 0, 0, 0);
}
}