Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
49 lines
1.3 KiB
C++
49 lines
1.3 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);
|
|
|
|
/* 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;
|
|
|
|
private:
|
|
UIButtonContext* m_controls;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIStaticText) == 224);
|
|
#endif
|
|
|
|
#endif
|