rodecomp/Source/UI/Text/NavigationLink.h
ragnarok-clanker 104c299e2e Decompile 2 functions in Source/UI/Window/UIRodexContentsWnd.cpp, Source/UI/Window/UIRodexContentsWnd.h, ...
Batch #8263 by SapitoSucio: 0 byte-identical, 2 confirmed by peer review.

- fn_10020 UIRodexContentsWnd::Slot15: logic confirmed by peer review
- fn_10026 UIRodexContentsWnd::SetMailContents: logic confirmed by peer review

Peer-reviewed-by: eAthena, System4z
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 15:51:19 +00:00

31 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#define RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#include <string>
#include <utility>
struct NavigationLinkParser {
NavigationLinkParser();
~NavigationLinkParser();
bool HasUnownedItemLink(std::string text);
bool HasLink(std::string text);
std::string ExpandMessages(std::string text);
/* 0000 */ bool m_ready;
};
extern NavigationLinkParser* g_navigationLinkParser;
bool CreateNavigationLinkParser();
void DestroyNavigationLinkParser();
std::string FormatMessageArguments(std::string value, int messageId);
std::pair<bool, std::string> RemoveLineBreakTag(std::string value);
int DecodeNavigationNumber(std::string value);
std::string EncodeNavigationNumber(int value);
bool ParseNavigationLink(std::string value, std::string& name, int& x, int& y);
std::string FormatNavigationLink(std::string value, bool brackets);
void DisplayNavigationLink(std::string& output, std::string value);
void ExtractNavigationLink(std::string& output, std::string value);
#endif