Decompile 4 functions in Source/UI/Text/NavigationLink.h, Source/UI/Text/NavigationLink.cpp, ...
Batch #16642 by eAthena: 0 byte-identical, 4 confirmed by peer review. - fn_10419 FormatNavigationLink: logic confirmed by peer review - fn_10455 CCreateLineInfo::BuildWindows: logic confirmed by peer review - fn_12743 UIChangeNameWnd::SendMsg: logic confirmed by peer review - fn_10026 UIRodexContentsWnd::SetMailContents: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, br4yan 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
be3f6a71b7
commit
7d9539e833
3 changed files with 7 additions and 7 deletions
|
|
@ -361,7 +361,7 @@ std::string FormatNavigationLink(std::string value, bool brackets) {
|
|||
std::string name;
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
g_navigationLinkParser->ParseNavigationLink(std::move(value), name, x, y);
|
||||
GetNavigationLinkParser()->ParseNavigationLink(std::move(value), name, x, y);
|
||||
char text[128] = {};
|
||||
|
||||
if (brackets) {
|
||||
|
|
@ -946,7 +946,7 @@ void CCreateLineInfo::BuildWindows() {
|
|||
x = this->LayoutLink(x, text, segment->type, segment->style);
|
||||
break;
|
||||
case LINE_SEGMENT_MESSAGE:
|
||||
x = this->LayoutText(x, g_navigationLinkParser->ExpandMessages(text), segment->style);
|
||||
x = this->LayoutText(x, GetNavigationLinkParser()->ExpandMessages(text), segment->style);
|
||||
break;
|
||||
case LINE_SEGMENT_EMOTION:
|
||||
x = this->LayoutEmotion(x, text);
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ int UIChangeNameWnd::SendMsg(UIWindow*, int message, std::intptr_t a, std::intpt
|
|||
case UM_COMMAND:
|
||||
switch (a) {
|
||||
case ID_OK: {
|
||||
if (g_navigationLinkParser->HasLink(this->m_edit->Text()) == true) {
|
||||
if (GetNavigationLinkParser()->HasLink(this->m_edit->Text()) == true) {
|
||||
g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON), 0, true, false, 0, "Message", 280, 120, 0);
|
||||
this->m_edit->SetText("");
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -388,13 +388,13 @@ void UIRodexContentsWnd::SetMailContents(std::string title, std::string sender,
|
|||
this->m_sender = sender;
|
||||
std::string text = body;
|
||||
|
||||
std::pair<bool, std::string> lineBreak = g_navigationLinkParser->RemoveLineBreakTag(this->m_sender);
|
||||
std::pair<bool, std::string> lineBreak = GetNavigationLinkParser()->RemoveLineBreakTag(this->m_sender);
|
||||
this->m_hasLineBreak = lineBreak.first;
|
||||
this->m_sender = lineBreak.second;
|
||||
|
||||
this->m_title = g_navigationLinkParser->ExpandMessages(this->m_title);
|
||||
this->m_sender = g_navigationLinkParser->ExpandMessages(this->m_sender);
|
||||
text = g_navigationLinkParser->ExpandMessages(text);
|
||||
this->m_title = GetNavigationLinkParser()->ExpandMessages(this->m_title);
|
||||
this->m_sender = GetNavigationLinkParser()->ExpandMessages(this->m_sender);
|
||||
text = GetNavigationLinkParser()->ExpandMessages(text);
|
||||
|
||||
this->m_contents = new UIRodexEditCtrl3();
|
||||
this->m_contents->SetSize(267, 192);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue