rodecomp/Source/UI/Text/UITextViewerControl.h
ragnarok-clanker 0ac20364af Decompile 2 functions in Source/UI/Window/UIControl.cpp, Source/UI/Window/UIControl.h, ...
Batch #5090 by youko: 0 byte-identical, 2 confirmed by peer review.

- fn_14574 CUITextButton::SetOutline: logic confirmed by peer review
- fn_14575 CUITextButton::SetShadow: logic confirmed by peer review

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

62 lines
1.9 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_UITEXTVIEWERCONTROL_H
#define RAGNAROK_SOURCE_UI_TEXT_UITEXTVIEWERCONTROL_H
#include "UI/Window/UIControl.h"
#include <cstdint>
#include <map>
#include <string>
#include <utility>
#include <vector>
class CUIPadding;
class CUIVScrollBar;
class CUITextViewer : public CUIControl {
public:
void Slot19() override;
void Paint() override;
void Slot35(int value) override;
void SetTextOffset(int x, int y);
void SetBackgroundColor(std::uint32_t value);
void SetBold(bool value);
void SetTextColor(std::uint32_t value);
void SetFontHeight(int value);
void SetFont(const std::string& name);
void SetLineSpacing(int value);
void SetOutline(bool enabled, std::uint32_t value);
void SetPadding(int left, int top, int right, int bottom);
void SetScrollStep(int value);
void SetScrollBarSize(int width, int height);
void SetScrollBarButtonImages(const std::string& up, const std::string& down);
void SetScrollBarThumbImages(const std::string& top, const std::string& middle, const std::string& bottom);
void SetScrollBarThumbImage(const std::string& name);
void SetScrollBarBackground(const std::string& name);
void SetText(const std::string& text);
void Clear();
/* 0080 */ int textX;
/* 0084 */ int textY;
/* 0088 */ int font;
/* 008C */ int fontHeight;
/* 0090 */ bool bold;
/* 0094 */ std::uint32_t textColor;
/* 0098 */ bool unknown_0098;
/* 009C */ std::uint32_t unknown_009C;
/* 00A0 */ bool outline;
/* 00A4 */ std::uint32_t outlineColor;
/* 00A8 */ int lineSpacing;
/* 00AC */ std::uint32_t backgroundColor;
/* 00B0 */ int paddingLeft;
/* 00B4 */ int paddingTop;
/* 00B8 */ int paddingRight;
/* 00BC */ int paddingBottom;
/* 00C0 */ CUIVScrollBar* scrollBar;
/* 00C4 */ CUIPadding* padding;
/* 00C8 */ std::vector<std::string> lines;
/* 00D4 */ int contentHeight;
/* 00D8 */ std::map<UIWindow*, std::pair<int, int>> childPositions;
};
#endif