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
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UITEXTBUTTON_H
|
|
#define RAGNAROK_SOURCE_UI_BUTTONS_UITEXTBUTTON_H
|
|
|
|
#include "UI/Buttons/UIButton.h"
|
|
|
|
#include <vector>
|
|
|
|
class UITextButton : public UIButton {
|
|
friend class UITextViewer;
|
|
friend class UIMessageBox;
|
|
|
|
public:
|
|
UITextButton(UIWindowContext& windows, UIButtonContext& buttons);
|
|
~UITextButton() override;
|
|
void Paint() override;
|
|
void Slot27(int x, int y) override;
|
|
void Slot28(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 Configure(const char* text, std::uint32_t color, int family, int height, unsigned char outline, unsigned char underline);
|
|
|
|
protected:
|
|
/* 00B4 */ std::uint32_t m_color;
|
|
/* 00B8 */ std::uint32_t m_normalColor;
|
|
/* 00BC */ std::uint32_t m_hoverColor;
|
|
/* 00C0 */ std::uint32_t m_outlineColor;
|
|
/* 00C4 */ unsigned char m_outline;
|
|
/* 00C5 */ unsigned char m_underline;
|
|
/* 00C8 */ int m_height;
|
|
/* 00CC */ int m_family;
|
|
/* 00D0 */ int m_value;
|
|
/* 00D4 */ std::string m_text;
|
|
/* 00EC */ std::vector<std::string> m_lines;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UITextButton) == 256);
|
|
#endif
|
|
|
|
#endif
|