From 5b2152a1de7eef55b7ead0ddcfd2cbb6ef7afabb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 15:03:47 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Input/Language.cpp, Source/UI/UICaptchaPreviewWnd.h, ... Batch #8204 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_11030 UIChatHisBox2::UIChatHisBox2: logic confirmed by peer review - fn_11031 UIChatHisBox3::UIChatHisBox3: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, System4z Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Input/Language.cpp | 18 ++++++++++++++++++ Source/UI/Lists/UIMemberListBox.h | 13 +++++++++---- Source/UI/UICaptchaPreviewWnd.h | 1 + Source/UI/UIRoundBoxTooltipWnd.h | 1 + 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/Source/Client/Input/Language.cpp b/Source/Client/Input/Language.cpp index 20830291..041f9baa 100644 --- a/Source/Client/Input/Language.cpp +++ b/Source/Client/Input/Language.cpp @@ -1,6 +1,9 @@ #include "Client/Input/Language.h" #include "Contents/CashEmotionMgr.h" #include "UI/Chat/ChatSuggestions.h" +#include "UI/Lists/UIMemberListBox.h" +#include "UI/UICaptchaPreviewWnd.h" +#include "UI/UIRoundBoxTooltipWnd.h" #include "UI/Window/UIWindowMgr.h" #include "UI/Window/UIWindow.h" #include "UI/Window/WindowManagerWindows.h" @@ -374,3 +377,18 @@ void SuggestChatCommand(const char* text) { int SubACFCE0() { return 0; } + +// OFFSET: 0x007ECEC0 + +// OFFSET: 0x0086C7B0 +// FUNCTION: fn_11030 +UIChatHisBox2::UIChatHisBox2(UIWindowContext& windows, UIListBoxContext& list) + : UIChatHisBox(windows, list), backgroundRed(255), backgroundGreen(255), backgroundBlue(255) { +} + +// OFFSET: 0x0086C830 +// FUNCTION: fn_11031 +UIChatHisBox3::UIChatHisBox3(UIWindowContext& windows, UIListBoxContext& list) : UIChatHisBox2(windows, list), unknown_0130(1), unknown_0134(12) { +} + +// OFFSET: 0x0099A060 diff --git a/Source/UI/Lists/UIMemberListBox.h b/Source/UI/Lists/UIMemberListBox.h index 91ad55f7..3ea9cc22 100644 --- a/Source/UI/Lists/UIMemberListBox.h +++ b/Source/UI/Lists/UIMemberListBox.h @@ -7,16 +7,25 @@ struct UIButtonContext; class UIChatHisBox2 : public UIChatHisBox { public: + UIChatHisBox2(UIWindowContext& windows, UIListBoxContext& list); bool Slot08() override; void Slot15(int width, int height) override; void Configure(int x, int y, int width, int height, unsigned char transparent) override; void Slot33(int x, int y) override; + + /* 0124 */ int backgroundRed; + /* 0128 */ int backgroundGreen; + /* 012C */ int backgroundBlue; }; class UIChatHisBox3 : public UIChatHisBox2 { public: + UIChatHisBox3(UIWindowContext& windows, UIListBoxContext& list); void Slot15(int width, int height) override; void Resize(int width, int height) override; + + /* 0130 */ int unknown_0130; + /* 0134 */ int unknown_0134; }; class UIMemberListBox : public UIChatHisBox2 { @@ -27,10 +36,6 @@ public: void Slot32(int x, int y) override; void Slot33(int x, int y) override; - /* 0124 */ int backgroundRed; - /* 0128 */ int backgroundGreen; - /* 012C */ int backgroundBlue; - protected: UIButtonContext* m_controls; }; diff --git a/Source/UI/UICaptchaPreviewWnd.h b/Source/UI/UICaptchaPreviewWnd.h index 848e2fab..9d5c9397 100644 --- a/Source/UI/UICaptchaPreviewWnd.h +++ b/Source/UI/UICaptchaPreviewWnd.h @@ -8,6 +8,7 @@ struct UIButtonContext; class UICaptchaPreviewWnd : public UIFrameWnd { public: + UICaptchaPreviewWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls); void Slot15(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; diff --git a/Source/UI/UIRoundBoxTooltipWnd.h b/Source/UI/UIRoundBoxTooltipWnd.h index 886348e8..88fef3ea 100644 --- a/Source/UI/UIRoundBoxTooltipWnd.h +++ b/Source/UI/UIRoundBoxTooltipWnd.h @@ -17,6 +17,7 @@ public: class UIRoundBoxTooltipWnd : public UIFrameWnd { public: + UIRoundBoxTooltipWnd(UIWindowContext& windows, UIFrameContext& frames, UIListBoxContext& list); void Slot15(int width, int height) override; void Paint() override; int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;