diff --git a/Source/UI/Buttons/UICheckBox.cpp b/Source/UI/Buttons/UICheckBox.cpp index 7da28cb1..01f73f59 100644 --- a/Source/UI/Buttons/UICheckBox.cpp +++ b/Source/UI/Buttons/UICheckBox.cpp @@ -75,6 +75,8 @@ void UICheckBox::SetChecked(int value) { this->Notify(); } +// OFFSET: 0x0086AF70 + // OFFSET: 0x0085EB90 // FUNCTION: fn_10841 void UICheckBox::Slot25(int, int) { diff --git a/Source/UI/Buttons/UICheckBox.h b/Source/UI/Buttons/UICheckBox.h index 042ba8aa..05eb7009 100644 --- a/Source/UI/Buttons/UICheckBox.h +++ b/Source/UI/Buttons/UICheckBox.h @@ -16,6 +16,7 @@ public: 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; diff --git a/Source/UI/Edit/UIEditCtrl.h b/Source/UI/Edit/UIEditCtrl.h index 9ba3c9a0..82766153 100644 --- a/Source/UI/Edit/UIEditCtrl.h +++ b/Source/UI/Edit/UIEditCtrl.h @@ -161,6 +161,7 @@ public: ~UIEditCtrl4() override; void Slot23() override; void PaintText() override; + void SetPlaceholderEnabled(bool enabled); /* 011C */ std::uint32_t placeholderColor; /* 0120 */ std::string placeholder; diff --git a/Source/UI/Edit/UIEditVariants.cpp b/Source/UI/Edit/UIEditVariants.cpp index 8e3880f0..41c13c76 100644 --- a/Source/UI/Edit/UIEditVariants.cpp +++ b/Source/UI/Edit/UIEditVariants.cpp @@ -80,6 +80,12 @@ void UIEditCtrl4::PaintText() { this->PaintTextWithPolicy(true, &this->placeholder, this->placeholderColor, this->placeholderEnabled == 1); } +// OFFSET: 0x00869800 +// FUNCTION: fn_10972 +void UIEditCtrl4::SetPlaceholderEnabled(bool enabled) { + this->placeholderEnabled = enabled; +} + // OFFSET: 0x0084F7B0 // FUNCTION: fn_10661 UIEditCtrl5::UIEditCtrl5(UIWindowContext& windows, UIEditContext& edit) : UIEditCtrl4(windows, edit) { diff --git a/Source/UI/UIStaticBitmap.cpp b/Source/UI/UIStaticBitmap.cpp index 8e4639f9..0270e345 100644 --- a/Source/UI/UIStaticBitmap.cpp +++ b/Source/UI/UIStaticBitmap.cpp @@ -22,6 +22,8 @@ void UIStaticBitmap::SetBitmap(const char* name) { this->geometry.height = resource->image.height; } +// OFFSET: 0x00869790 + // OFFSET: 0x0085DA90 // FUNCTION: fn_10817 void UIStaticBitmap::Paint() { diff --git a/Source/UI/UIStaticBitmap.h b/Source/UI/UIStaticBitmap.h index 10620c89..a5cccb8b 100644 --- a/Source/UI/UIStaticBitmap.h +++ b/Source/UI/UIStaticBitmap.h @@ -22,6 +22,7 @@ public: void Slot33(int x, int y) override; void Slot35(int value) override; void SetBitmap(const char* name); + void SetTooltip(const char* text); /* 007C */ std::string bitmap; /* 0094 */ std::string tooltip;