rodecomp/Source/UI/Text/UITextViewerControl.h
ragnarok-clanker fec919b88e Maintenance: Link-completeness fixes so the whole client links into one executable (all units in data/compile.json plus exe-only thir
Batch #13186 by ragnarok-clanker: forced by an admin (40 lower score(s), 206 changed function(s)); checked with 620 compiled unit(s), including every includer of Source/Archive/GPak.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Client/Stove/StovePCSDK.h, Source/Client/Timer.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/RenderObject.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Skills/SkillTreeScript.h, Source/Render/DX9/D3DX9Runtime.h, Source/Resource/GifResource.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIReputeWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/EncryptedName.h.
2026-11-06 10:56:48 +00:00

67 lines
2.2 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:
CUITextViewer();
void Slot15(int width, int height) override;
void Resize(int width, int height) override;
void Slot19() override;
void Paint() override;
void Slot35(int value) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) 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 Clear();
void AddLine(const std::string& text);
void Relayout();
/* 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