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
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UICHECKBOX_H
|
|
#define RAGNAROK_SOURCE_UI_BUTTONS_UICHECKBOX_H
|
|
|
|
#include "UI/Buttons/UIButton.h"
|
|
|
|
class UICheckBox : public UIWindow {
|
|
public:
|
|
UICheckBox(UIWindowContext& windowContext, UIButtonContext& controls);
|
|
~UICheckBox() override;
|
|
void Paint() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot28(int x, int y) override;
|
|
void ResetCursor(int x, int y) override;
|
|
void SetChecked(int value);
|
|
void SetImages(const char* checked, const char* unchecked, const char* text);
|
|
void SetTooltip(const char* text);
|
|
|
|
protected:
|
|
/* 007C */ int m_disabled;
|
|
/* 0080 */ std::string m_checked;
|
|
/* 0098 */ std::string m_unchecked;
|
|
/* 00B0 */ std::string m_text;
|
|
/* 00C8 */ std::string m_tooltip;
|
|
/* 00E0 */ unsigned char m_hidden;
|
|
/* 00E4 */ std::uint32_t m_color;
|
|
/* 00E8 */ int m_fontHeight;
|
|
/* 00EC */ int m_message;
|
|
/* 00F0 */ int m_notify;
|
|
/* 00F4 */ std::string m_uncheckedTooltip;
|
|
UIButtonContext* m_controls;
|
|
|
|
private:
|
|
void Notify();
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UICheckBox) == 276);
|
|
#endif
|
|
|
|
#endif
|