rodecomp/Source/UI/Text/UIStaticText.h
ragnarok-clanker 9136dd8094 Decompile 9 functions in Source/UI/Buttons/UIRadioBtn.cpp, Source/UI/Buttons/UIRadioBtn.h, ...
Batch #4429 by eAthena: 0 byte-identical, 9 confirmed by peer review.

- fn_10915 UIEditCtrlVarId::SendMsg: logic confirmed by peer review
- fn_10916 UIEditCtrl_OldList::SendMsg: logic confirmed by peer review
- fn_10917 UIEmblemWnd::SendMsg: logic confirmed by peer review
- fn_10919 UIRadioBtn::SendMsg: logic confirmed by peer review
- fn_10920 UISlotBitmap::SendMsg: logic confirmed by peer review
- fn_10921 UITab::SendMsg: logic confirmed by peer review
- fn_10923 UIWordDisplayWnd::SendMsg: logic confirmed by peer review
- fn_10935 UIBalloonText::SetFontHeight: logic confirmed by peer review
- fn_10936 UIStaticText::SetFont: logic confirmed by peer review

Peer-reviewed-by: alisonrag, willerthal
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 03:03:29 +00:00

60 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXT_H
#define RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXT_H
#include "UI/Window/UIWindow.h"
#include <string>
struct UIButtonContext;
class UIStaticText : public UIWindow {
public:
UIStaticText();
UIStaticText(UIWindowContext& windows, UIButtonContext& controls);
~UIStaticText() override;
void Paint() override;
void Slot25(int x, int y) override;
void Slot26(int x, int y) override;
void Slot27(int x, int y) override;
void Slot28(int x, int y) override;
void ResetCursor(int x, int y) override;
void Slot31(int x, int y) override;
void Slot32(int x, int y) override;
void Slot33(int x, int y) override;
void Slot35(int value) override;
void SetText(const char* value, int outline);
void SetColor(int redValue, int greenValue, int blueValue);
void SetTextFitted(const char* value);
void SetFont(int family, int height, unsigned char bold, unsigned char italic);
/* 007C */ int red;
/* 0080 */ int green;
/* 0084 */ int blue;
/* 0088 */ int shadow;
/* 008C */ int outline;
/* 0090 */ std::uint32_t background;
/* 0094 */ std::uint32_t outlineColor;
/* 0098 */ int fontHeight;
/* 009C */ int fontFamily;
/* 00A0 */ unsigned char bold;
/* 00A1 */ unsigned char italic;
/* 00A4 */ int tooltipEnabled;
/* 00A8 */ std::string text;
/* 00C0 */ std::string tooltip;
protected:
UIButtonContext* m_controls;
};
class UIStaticText3 : public UIStaticText {
public:
void Paint() override;
/* 00D8 */ int textX;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIStaticText) == 224);
#endif
#endif