rodecomp/Source/UI/Text/NavigationLink.h
ragnarok-clanker 655ae58d75 Decompile 4 functions in Source/UI/Text/NavigationLink.cpp, Source/UI/Text/NavigationLink.h
Batch #7302 by eAthena: 0 byte-identical, 4 confirmed by peer review.

- fn_10406 NavigationLinkParser::HasUnownedItemLink: logic confirmed by peer review
- fn_10469 UIEmotion::Paint: logic confirmed by peer review
- fn_10475 UIItemImage::Slot28: logic confirmed by peer review
- fn_10479 UIItemImage::Slot32: logic confirmed by peer review

Peer-reviewed-by: meitogi, gordaoprogramas, aDw
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 06:31:14 +00:00

29 lines
942 B
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#define RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#include <string>
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);
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