diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index 8b05d022..7cc1656d 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -586,6 +586,27 @@ int CUIEditBox::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int return UIWindow::SendMsg(sender, message, a, b, c, d); } +// OFFSET: 0x009ED790 +// FUNCTION: fn_14585 +void CUIEditBox::SetBackgroundColor(std::uint32_t color) { + this->backgroundColor = color; + this->Invalidate(); +} + +// OFFSET: 0x009ED800 +// FUNCTION: fn_14587 +void CUIEditBox::SetBorderColor(std::uint32_t color) { + this->borderColor = color; + this->Invalidate(); +} + +// OFFSET: 0x009ED820 +// FUNCTION: fn_14588 +void CUIEditBox::SetBorderWidth(int width) { + this->borderWidth = width; + this->Invalidate(); +} + // OFFSET: 0x009EF860 // FUNCTION: fn_14649 void CUIImageButton::Paint() { diff --git a/Source/UI/Window/UIControl.h b/Source/UI/Window/UIControl.h index 4e3ff456..a82f7418 100644 --- a/Source/UI/Window/UIControl.h +++ b/Source/UI/Window/UIControl.h @@ -161,6 +161,9 @@ public: void Resize(int width, int height) override; void Paint() override; int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override; + void SetBackgroundColor(std::uint32_t color); + void SetBorderColor(std::uint32_t color); + void SetBorderWidth(int width); /* 0080 */ std::uint32_t backgroundColor; /* 0084 */ std::uint32_t borderColor;