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).
This commit is contained in:
ragnarok-clanker 2026-10-31 15:03:47 +00:00
commit 5b2152a1de
4 changed files with 29 additions and 4 deletions

View file

@ -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

View file

@ -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;
};

View file

@ -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;

View file

@ -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;