Batch #3756 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_10972 UIEditCtrl4::SetPlaceholderEnabled: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
43 lines
1.1 KiB
C++
43 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 {
|
|
friend class CMergeItemWnd;
|
|
|
|
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);
|
|
void SetHidden(bool hidden);
|
|
|
|
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
|