Decompile 3 functions in Source/UI/Window/UIControl.cpp, Source/UI/Window/UIControl.h
Batch #3569 by superintelligence: 0 byte-identical, 3 confirmed by peer review. - fn_14585 CUIEditBox::SetBackgroundColor: logic confirmed by peer review - fn_14587 CUIEditBox::SetBorderColor: logic confirmed by peer review - fn_14588 CUIEditBox::SetBorderWidth: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
535d6fb991
commit
c47e142bee
2 changed files with 24 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue