rodecomp/Source/UI/Lists/UIScrollBar.h
ragnarok-clanker a21927cc7d Decompile 5 functions in Source/UI/Buttons/UITextButton.cpp, Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, ...
Batch #4991 by Yommy: 0 byte-identical, 5 confirmed by peer review.

- fn_11240 UIChatHisBox2::Configure: logic confirmed by peer review
- fn_11241 UIChatHisBox::Configure: logic confirmed by peer review
- fn_11242 UIComboBox::Configure: logic confirmed by peer review
- fn_11248 UITextViewEX::Configure: logic confirmed by peer review
- fn_11251 UIScrollBar::Configure: logic confirmed by peer review

Peer-reviewed-by: youko, tayoba, SapitoSucio
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 07:43:52 +00:00

50 lines
1.4 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_LISTS_UISCROLLBAR_H
#define RAGNAROK_SOURCE_UI_LISTS_UISCROLLBAR_H
#include "UI/Window/UIWindow.h"
class UIScrollBar : public UIWindow {
public:
explicit UIScrollBar(UIWindowContext& windows);
~UIScrollBar() override;
void Resize(int width, int height) override;
bool Slot08() override;
void Paint() override;
void Slot25(int x, int y) override;
void Slot26(int x, int y) override;
void Slot27(int x, int y) override;
void ResetCursor(int x, int y) override;
void Slot31(int x, int y) override;
void Slot33(int x, int y) override;
void Slot35(int value) override;
virtual int ThumbLength();
int ThumbOffset();
int Position();
int Travel();
int Part(int x, int y);
void Configure(int x, int y, unsigned char vertical, int length);
void Configure(int x, int y, int length, int vertical, int arrowLength, int thickness);
void SetPosition(int value);
void SetRange(int maximum, int visible, int total);
/* 007C */ int state;
/* 0080 */ int maximum;
/* 0084 */ int position;
/* 0088 */ int vertical;
/* 008C */ int pressX;
/* 0090 */ int pressY;
/* 0094 */ int dragAmount;
/* 0098 */ int total;
/* 009C */ int visible;
/* 00A0 */ int arrowLength;
/* 00A4 */ int thickness;
/* 00A8 */ int minimumThumb;
/* 00AC */ int horizontalStep;
/* 00B0 */ int verticalStep;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIScrollBar) == sizeof(UIWindow) + 0x38);
#endif
#endif