From da1233e2e373701f4ea66d98cd744c29a3588230 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 03:29:31 +0000 Subject: [PATCH] Decompile fn_12593 (UISubChatHisWnd::Slot43) Batch #7046 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_12593 UISubChatHisWnd::Slot43: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, superintelligence, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Render/Primitives/ScreenLine.cpp | 17 +++++++++++++++++ Source/UI/Chat/UISubChatHisWnd.h | 1 + 2 files changed, 18 insertions(+) diff --git a/Source/Render/Primitives/ScreenLine.cpp b/Source/Render/Primitives/ScreenLine.cpp index d5dd5ef4..107ac6c1 100644 --- a/Source/Render/Primitives/ScreenLine.cpp +++ b/Source/Render/Primitives/ScreenLine.cpp @@ -14,6 +14,7 @@ #include "Resource/ResourceMgr.h" #include "Resource/Sprites/ActionResource.h" #include "Resource/Sprites/SpriteResource.h" +#include "UI/Chat/UISubChatHisWnd.h" #include "Utility/Math/AffineMatrix.h" #include @@ -45,6 +46,22 @@ void UIRoMapWnd::DrawRecordAreas() { } } +// OFFSET: 0x00918300 +// FUNCTION: fn_12593 +void UISubChatHisWnd::Slot43() { + int x = 0; + int y = 0; + this->ToScreen(x, y); + DrawAlphaRectangle( + g_renderer->primitives, g_renderer->queues, x + 1, y + 1, this->m_inputWidth - 2, this->m_inputHeight, 0x66000000, g_renderer->fog.supported != 0, + g_depthStart, g_depthEnd + ); + DrawAlphaRectangle( + g_renderer->primitives, g_renderer->queues, this->m_state.unknown_0000 + 1, this->m_state.unknown_0004 + 1, this->m_state.unknown_0008 - 2, + this->m_state.unknown_000C - 2, this->m_state.unknown_0014, g_renderer->fog.supported != 0, g_depthStart, g_depthEnd + ); +} + // OFFSET: 0x009189C0 // FUNCTION: fn_12595 void UIRoMapWnd::DrawKafraIcon(float x, float y) { diff --git a/Source/UI/Chat/UISubChatHisWnd.h b/Source/UI/Chat/UISubChatHisWnd.h index 17392070..fc9a52e5 100644 --- a/Source/UI/Chat/UISubChatHisWnd.h +++ b/Source/UI/Chat/UISubChatHisWnd.h @@ -38,6 +38,7 @@ public: void Slot27(int x, int y) override; void Slot31(int x, int y) override; bool Slot42(void* output) override; + void Slot43() override; UIChatHisBox* ChatBox() const { return m_chatBox; } std::string Name() const { return m_name; }