Decompile 6 functions in Source/UI/Text/TextMarkup.cpp, Source/UI/Text/TextMarkup.h, ...
Batch #11865 by Yommy: 0 byte-identical, 6 confirmed by peer review. - fn_11214 ExpandTextEscapes: logic confirmed by peer review - fn_16963 DisplayItemTextTag: logic confirmed by peer review - fn_16964 DisplayNavigationTextTag: logic confirmed by peer review - fn_16965 DisplayQuestTextTag: logic confirmed by peer review - fn_16967 DisplayTipBoxTextTag: logic confirmed by peer review - fn_16968 DisplayUrlTextTag: 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
749f9073f1
commit
cc0c4cb0e8
3 changed files with 64 additions and 56 deletions
|
|
@ -1469,11 +1469,11 @@ int UIWindow::FormattedTextWidth(std::string text, int family, int height, unsig
|
|||
// OFFSET: 0x00A80880
|
||||
// FUNCTION: fn_16977
|
||||
std::string UIWindow::FitDisplayText(int width, const char* text, int family, int height, unsigned char bold) {
|
||||
std::string display = DisplayTextTag(std::string(text), "<URL>", "</URL>");
|
||||
display = DisplayTextTag(std::move(display), "<NAVI>", "</NAVI>");
|
||||
display = DisplayTextTag(std::move(display), "<TIPBOX>", "</TIPBOX>");
|
||||
display = DisplayTextTag(std::move(display), "<ITEM>", "</ITEM>");
|
||||
display = RemoveTextLinkInfo(std::move(display));
|
||||
std::string display = DisplayUrlTextTag(text);
|
||||
display = DisplayNavigationTextTag(display);
|
||||
display = DisplayTipBoxTextTag(display);
|
||||
display = DisplayItemTextTag(display);
|
||||
display = RemoveTextLinkInfo(display);
|
||||
|
||||
if (g_windowMgr.window_01C8) {
|
||||
display = static_cast<UINewChatWnd*>(g_windowMgr.window_01C8)->ConvertChat(std::move(display));
|
||||
|
|
@ -1482,7 +1482,7 @@ std::string UIWindow::FitDisplayText(int width, const char* text, int family, in
|
|||
std::string navigation;
|
||||
DisplayNavigationLink(navigation, display);
|
||||
display = std::move(navigation);
|
||||
display = DisplayTextTag(std::move(display), "<QUEST>", "</QUEST>");
|
||||
display = DisplayQuestTextTag(display);
|
||||
|
||||
const auto textWidth = [this, family, height, bold](const char* value) {
|
||||
if (!value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue