rodecomp/Source/UI/Lists/UIVScrollBar.h
ragnarok-clanker 05897157f1 Decompile 6 functions in Source/UI/Window/UIControl.cpp, Source/UI/Lists/UIListBoxTemplate.h, ...
Batch #1741 by ragnarok-clanker: 0 byte-identical, 6 confirmed by peer review.

- fn_14037 CUIListBox<AdventureGuide::CUISubTab>::Resize: logic confirmed by peer review
- fn_14038 CUIListBox<AdventureGuide::CUITab>::Resize: logic confirmed by peer review
- fn_14043 CUIListBoxEx<AdventureGuide::CUIItemInfo,AdventureGuide::CItemData>::OnScroll: logic confirmed by peer review
- fn_14044 CUIListBoxEx<AdventureGuide::CUIMonsterInfo,AdventureGuide::CMonsterData>::OnScroll: logic confirmed by peer review
- fn_14045 CUIListBoxEx<AdventureGuide::CUIQuestInfo,AdventureGuide::CQuestInfo>::OnScroll: logic confirmed by peer review
- fn_14046 CUIListBoxEx<AdventureGuide::CUITabInfo,Guide_Intro::Contents>::OnScroll: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
2026-10-28 21:57:49 +00:00

37 lines
961 B
C++

#ifndef RAGNAROK_SOURCE_UI_LISTS_UIVSCROLLBAR_H
#define RAGNAROK_SOURCE_UI_LISTS_UIVSCROLLBAR_H
#include "UI/Window/UIControl.h"
#include <cstddef>
#include <functional>
class CUIVScrollBar : public CUIControl {
public:
virtual void Slot54();
void SetTotal(int value);
void SetVisible(int value);
void SetPosition(int value);
/* 0084 */ UIWindow* upButton;
/* 0088 */ CUIControl* thumb;
/* 008C */ int unknown_008C;
/* 0090 */ int total;
/* 0094 */ int visible;
/* 0098 */ int unknown_0098;
/* 009C */ int position;
/* 00A0 */ int maximum;
/* 00A4 */ int trackLength;
/* 00A8 */ unsigned char dragging;
/* 00A9 */ unsigned char unknown_00A9[0x1F];
/* 00C8 */ std::function<void(int)> onChange;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CUIVScrollBar, total) == 0x90);
static_assert(offsetof(CUIVScrollBar, dragging) == 0xA8);
static_assert(offsetof(CUIVScrollBar, onChange) == 0xC8);
#endif
#endif