From 9c1c7dadbd2cc7fd889daddc50bef86b63523bb3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sun, 1 Nov 2026 09:25:13 +0000 Subject: [PATCH] Decompile fn_12238 (UINpcTextEditDialogWnd::Paint) Batch #9372 by secret: 0 byte-identical, 1 confirmed by peer review. - fn_12238 UINpcTextEditDialogWnd::Paint: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, Montyla, Bielhp Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 16 ++++++++++++++++ Source/UI/Dialogs/UINpcEditDialogWnd.h | 1 + 2 files changed, 17 insertions(+) diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index ce4ff63c..5a54f50b 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -621,6 +621,22 @@ void UINpcEditDialogWnd::Paint() { this->DrawTextAt(controls.fonts, controls.locale, 15, 6, g_serviceType == 12 ? "Insira o Numero" : "Input number ", 0, 0, 12, 0, 0, 0); } +// OFFSET: 0x008EF850 +// FUNCTION: fn_12238 +void UINpcTextEditDialogWnd::Paint() { + this->DrawBorder(0, 0, 0, 0); + if (!this->m_tagCtrl) { + return; + } + + this->m_tagCtrl->SetTaggedText(std::string(this->edit->Text()), this->edit->geometry.width); + this->m_tagCtrl->sub_8962C0(); + if (this->m_tagCtrl->unknown_011C == 0) { + delete this->m_tagCtrl; + this->m_tagCtrl = nullptr; + } +} + // OFFSET: 0x008EF9A0 // FUNCTION: fn_12239 void UIPartyInvitationToWnd::Paint() { diff --git a/Source/UI/Dialogs/UINpcEditDialogWnd.h b/Source/UI/Dialogs/UINpcEditDialogWnd.h index da346915..a7a139bc 100644 --- a/Source/UI/Dialogs/UINpcEditDialogWnd.h +++ b/Source/UI/Dialogs/UINpcEditDialogWnd.h @@ -33,6 +33,7 @@ public: void Slot15(int width, int height) override; void InsertItemTag(const ITEM_INFO& item); void InsertSkillTag(int tagId); + void Paint() override; /* 00BC */ UIItemTagOnMegaPhone* m_tagCtrl; };