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:
parent
ad7f5f3b3b
commit
6b2798b6d0
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue