Decompile fn_10463 (CCreateLineInfo::CreateLinkWindow)

Batch #9416 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_10463 CCreateLineInfo::CreateLinkWindow: logic confirmed by peer review

Peer-reviewed-by: Yommy, gordaoprogramas, Toshiro, seumadruga
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 12:46:12 +00:00
commit 7bb34250a4
2 changed files with 20 additions and 0 deletions

View file

@ -1101,6 +1101,25 @@ int CCreateLineInfo::AddLink(int index, int type) {
}
// OFFSET: 0x0083A5F0
// FUNCTION: fn_10463
UITextButton* CCreateLineInfo::CreateLinkWindow(const std::string& text, const std::vector<std::string>& parts, int type, LineTextStyle style) {
if (text.empty() || parts.empty()) {
return nullptr;
}
const int width = MeasureText(this->m_parent, text, style).cx;
UITextButton* button = new UITextButton();
button->Configure(text.c_str(), type == LINE_SEGMENT_URL ? 0xE6A300 : 0xF4934A, 0, 12, 0, 1);
button->m_hoverColor = type == LINE_SEGMENT_URL ? 0xEFB700 : 0xFF7864;
button->SetId(type);
button->ResizeToTextClipped(width + 1, button->geometry.height);
for (std::string part : parts) {
button->m_lines.push_back(part);
}
return button;
}
// OFFSET: 0x0083ACF0
// FUNCTION: fn_10467