From 990adea01f5c33b536a2c4e42fb2aa9ad6ce9fb9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 00:43:36 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Text/UITextViewer.cpp Batch #11475 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_11249 UITextViewer::Configure: byte-identical - fn_11229 UITextViewer::Clear: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Text/UITextViewer.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/UI/Text/UITextViewer.cpp b/Source/UI/Text/UITextViewer.cpp index 84e0d073..c4e48cba 100644 --- a/Source/UI/Text/UITextViewer.cpp +++ b/Source/UI/Text/UITextViewer.cpp @@ -2,6 +2,7 @@ #include "Render/Text/TextContext.h" #include "Resource/Bitmap/BitmapResource.h" #include "Resource/ResourceMgr.h" +#include "Resource/SkinPalette.h" #include "UI/Text/ColoredText.h" #include "UI/Lists/UIChatHisBox.h" #include "UI/Text/TextMarkup.h" @@ -67,7 +68,11 @@ void UITextViewEX::Clear() { // OFFSET: 0x0087B780 // FUNCTION: fn_11249 void UITextViewer::Configure(int x, int y, int width, int height, unsigned char value) { - UIListBox::Configure(x, y, width, height, value); + this->transparent = value; + UIWindow::Resize(width, height); + this->Move(x, y); + this->Slot15(width, height); + this->Slot22(width, height); } // OFFSET: 0x008760C0 @@ -81,8 +86,8 @@ void UITextViewer::AddLine(const char* text) { void UITextViewer::Clear() { UIListBox::Clear(); - for (UITextButton* link : this->links) { - this->RemoveChild(link, 1); + for (auto it = this->links.begin(); it != this->links.end(); ++it) { + this->RemoveChild(*it, 1); } this->links.clear();