Batch #4394 by Yommy: 0 byte-identical, 7 confirmed by peer review. - fn_10085 UIRoulletteWnd::ItemAt: logic confirmed by peer review - fn_10090 UIRoulletteWnd::Slot19: logic confirmed by peer review - fn_10091 UIRoulletteWnd::Slot32: logic confirmed by peer review - fn_10092 UIRoulletteWnd::SendMsg: logic confirmed by peer review - fn_10093 UIRoulletteWnd::UpdateButtons: logic confirmed by peer review - fn_10961 UIStaticText::SetColor: logic confirmed by peer review - fn_10965 UIStaticText::SetTextFitted: logic confirmed by peer review Peer-reviewed-by: eAthena, KWDev, Qwenkler3.8 Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
58 lines
1.5 KiB
C++
58 lines
1.5 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(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);
|
|
|
|
/* 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
|