rodecomp/Source/UI/Text/UIStaticTextControl.h
ragnarok-clanker 11b250004f Decompile 2 functions in Source/UI/AdventureGuide/UIAdventureGuide.cpp, Source/UI/AdventureGuide/UIAdventureGuide.h, ...
Batch #5396 by willerthal: 0 byte-identical, 2 confirmed by peer review.

- fn_14316 AdventureGuide::CUIIntro::BindContents: logic confirmed by peer review
- fn_14362 AdventureGuide::CUIQuestInfo::SetViewerLines: logic confirmed by peer review

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

45 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXTCONTROL_H
#define RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXTCONTROL_H
#include "UI/Window/UIControl.h"
#include <cstddef>
#include <cstdint>
#include <string>
class CUIVScrollBar;
class CUIStaticText : public CUIControl {
public:
void SetColor(std::uint32_t color);
void SetOutline(bool enabled, std::uint32_t color);
void SetShadow(bool enabled, std::uint32_t color);
void SetText(const char* value, std::size_t length);
/* 0080 */ std::string text;
/* 0098 */ std::string unknown_0098;
/* 00B0 */ unsigned char unknown_00B0[0x0C];
/* 00C0 */ CUIVScrollBar* scrollBar;
/* 00C4 */ unsigned char unknown_00C4[0x04];
/* 00C8 */ bool fitText;
/* 00CC */ int horizontalAlign;
/* 00D0 */ int verticalAlign;
/* 00D4 */ int fontIndex;
/* 00D8 */ int fontHeight;
/* 00DC */ unsigned char bold;
/* 00E0 */ std::uint32_t color;
/* 00E4 */ bool shadow;
/* 00E8 */ std::uint32_t shadowColor;
/* 00EC */ bool outline;
/* 00F0 */ std::uint32_t outlineColor;
/* 00F4 */ int textX;
/* 00F8 */ int textY;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CUIStaticText) == 0xFC);
static_assert(offsetof(CUIStaticText, color) == 0xE0);
static_assert(offsetof(CUIStaticText, outlineColor) == 0xF0);
#endif
#endif