rodecomp/Source/UI/Lists/UIListBoxID.h
ragnarok-clanker 0f587587ed Decompile 2 functions in Source/UI/Lists/UIListBoxID.cpp, Source/UI/Lists/UIListBoxID.h
Batch #6306 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_11244 UIComboBoxID::Configure: logic confirmed by peer review
- fn_11247 UIListBoxID::Configure: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, System4z
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/Lists/UIListBoxID.cpp
2026-10-30 21:46:39 +00:00

54 lines
1.4 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_LISTS_UILISTBOXID_H
#define RAGNAROK_SOURCE_UI_LISTS_UILISTBOXID_H
#include "UI/Window/UIWindow.h"
#include <map>
#include <string>
class UIScrollBar;
struct IdListLine {
/* 0000 */ int id;
/* 0004 */ std::string text;
};
class UIListBoxID : public UIWindow {
public:
void Resize(int width, int height) override;
void Slot15(int width, int height) override;
void Slot25(int x, int y) override;
void Slot35(int value) override;
virtual void Configure(int x, int y, int width, int height, unsigned char transparent);
virtual void Clear();
virtual void Refresh();
/* 007C */ unsigned char unknown_007C[0xC];
/* 0088 */ std::map<int, IdListLine> lines;
/* 0090 */ int selected;
/* 0094 */ int topLine;
/* 0098 */ int horizontalOffset;
/* 009C */ int contentWidth;
/* 00A0 */ int verticalOverflow;
/* 00A4 */ int bottomMargin;
/* 00A8 */ UIScrollBar* verticalBar;
/* 00AC */ UIScrollBar* horizontalBar;
/* 00B0 */ int transparent;
/* 00B4 */ int lineHeight;
};
class UIComboBoxID : public UIListBoxID {
public:
void Resize(int width, int height) override;
void Slot25(int x, int y) override;
void Slot26(int x, int y) override;
void Slot27(int x, int y) override;
void Configure(int x, int y, int width, int height, unsigned char transparent) override;
void Refresh() override;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(IdListLine) == 28);
#endif
#endif