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).
This commit is contained in:
ragnarok-clanker 2026-11-01 09:25:13 +00:00
commit 9c1c7dadbd
2 changed files with 17 additions and 0 deletions

View file

@ -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() {

View file

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