From 6bfababf2cd4647eda679d78ffeaa7320a222e18 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 12:14:52 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Text/TextMarkup.cpp, Source/UI/Text/TextMarkup.h Batch #7843 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_16967 DisplayTipBoxTextTag: logic confirmed by peer review - fn_16968 DisplayUrlTextTag: logic confirmed by peer review Peer-reviewed-by: Yommy, Snow, pedrao Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Text/TextMarkup.cpp | 12 ++++++++++++ Source/UI/Text/TextMarkup.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/Source/UI/Text/TextMarkup.cpp b/Source/UI/Text/TextMarkup.cpp index 61286ad2..c13aa524 100644 --- a/Source/UI/Text/TextMarkup.cpp +++ b/Source/UI/Text/TextMarkup.cpp @@ -177,6 +177,18 @@ std::string DisplayQuestTextTag(const std::string& text) { return DisplayTextTag(text, g_questTagBegin, g_questTagEnd); } +// OFFSET: 0x00A7FE50 +// FUNCTION: fn_16967 +std::string DisplayTipBoxTextTag(const std::string& text) { + return DisplayTextTag(text, g_tipBoxTagBegin, g_tipBoxTagEnd); +} + +// OFFSET: 0x00A7FEC0 +// FUNCTION: fn_16968 +std::string DisplayUrlTextTag(const std::string& text) { + return DisplayTextTag(text, g_urlTagBegin, g_urlTagEnd); +} + // 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 af46861c..164a89f5 100644 --- a/Source/UI/Text/TextMarkup.h +++ b/Source/UI/Text/TextMarkup.h @@ -20,6 +20,8 @@ std::string DisplayTextTag(std::string text, const std::string& begin, const std std::string DisplayItemTextTag(const std::string& text); std::string DisplayNavigationTextTag(const std::string& text); std::string DisplayQuestTextTag(const std::string& text); +std::string DisplayTipBoxTextTag(const std::string& text); +std::string DisplayUrlTextTag(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);