Decompile fn_11504 (UIWindow::WrapLinkText)

Batch #15875 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_11504 UIWindow::WrapLinkText: logic confirmed by peer review

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-10 11:09:57 +00:00
commit 6b2798b6d0

View file

@ -133,12 +133,14 @@ void UIWindow::WrapPixelText(const char* text, std::vector<std::string>& lines,
// OFFSET: 0x008932D0
// FUNCTION: fn_11504
void UIWindow::WrapLinkText(int* kind, std::vector<std::string>* lines, const std::string& text) {
const char* characters = text.c_str();
int width = this->geometry.width;
if (*kind != 3) {
this->WrapPixelText(characters, *lines, this->geometry.width - 16);
width -= 16;
this->WrapPixelText(text.c_str(), *lines, width);
return;
}
width -= 24;
std::vector<bool> wrapped;
this->WrapTextWithBreaks(characters, lines, &wrapped, this->geometry.width - 24);
this->WrapTextWithBreaks(text.c_str(), lines, &wrapped, width);
}