diff --git a/Source/UI/Text/TextMarkup.cpp b/Source/UI/Text/TextMarkup.cpp index f93898ef..61286ad2 100644 --- a/Source/UI/Text/TextMarkup.cpp +++ b/Source/UI/Text/TextMarkup.cpp @@ -31,6 +31,18 @@ static const std::string g_naviTagBegin = ""; // GLOBAL: gl_24594 static const std::string g_naviTagEnd = ""; +// GLOBAL: gl_24595 +static const std::string g_itemTagBegin = ""; + +// GLOBAL: gl_24596 +static const std::string g_itemTagEnd = ""; + +// GLOBAL: gl_24599 +static const std::string g_questTagBegin = ""; + +// GLOBAL: gl_24600 +static const std::string g_questTagEnd = ""; + // OFFSET: 0x00A7CA90 // FUNCTION: fn_16949 void ExtractNavigationTextLinks(std::string&& text, std::vector& links) { @@ -147,6 +159,24 @@ std::string DisplayTextTag(std::string text, const std::string& begin, const std return result; } +// OFFSET: 0x00A7F510 +// FUNCTION: fn_16963 +std::string DisplayItemTextTag(const std::string& text) { + return DisplayTextTag(text, g_itemTagBegin, g_itemTagEnd); +} + +// OFFSET: 0x00A7F580 +// FUNCTION: fn_16964 +std::string DisplayNavigationTextTag(const std::string& text) { + return DisplayTextTag(text, g_naviTagBegin, g_naviTagEnd); +} + +// OFFSET: 0x00A7F5F0 +// FUNCTION: fn_16965 +std::string DisplayQuestTextTag(const std::string& text) { + return DisplayTextTag(text, g_questTagBegin, g_questTagEnd); +} + // OFFSET: 0x00A7EF40 // FUNCTION: fn_16962 std::string RemoveTextLinkInfo(std::string text) { diff --git a/Source/UI/Text/TextMarkup.h b/Source/UI/Text/TextMarkup.h index e85bdb9d..af46861c 100644 --- a/Source/UI/Text/TextMarkup.h +++ b/Source/UI/Text/TextMarkup.h @@ -17,6 +17,9 @@ bool HasTextLinks(const std::string& text); std::string ExpandTextEscapes(std::string text); std::string RemoveTextColors(const char* text, unsigned short codePage); std::string DisplayTextTag(std::string text, const std::string& begin, const std::string& end); +std::string DisplayItemTextTag(const std::string& text); +std::string DisplayNavigationTextTag(const std::string& text); +std::string DisplayQuestTextTag(const std::string& text); std::string RemoveTextLinkInfo(std::string text); void ExtractTextLinks(std::string text, const std::string& begin, const std::string& end, std::vector& links); void SplitTextLinkArguments(std::string text, std::vector& arguments);