Batch #11163 by ragnarok-clanker: no function's compiled code changes; checked with 226 compiled unit(s), including every includer of Source/Client/Application/UnhandledExceptionHandler.h, Source/Contents/ReputeMgrLoad.inl, Source/Render/RenderSystemBase.h, Source/UI/Lists/UIListBoxTemplate.h, Source/Utility/Async/NRecycleObject.h.
34 lines
891 B
C++
34 lines
891 B
C++
#include "Contents/NavigationManager.h"
|
|
#include "UI/Text/NavigationLink.h"
|
|
#include "UI/Buttons/UINaviLinkButton.h"
|
|
|
|
// OFFSET: 0x0086DF60
|
|
// FUNCTION: fn_11062
|
|
UINaviLinkButton::UINaviLinkButton() : UITextButton() {
|
|
}
|
|
|
|
UINaviLinkButton::~UINaviLinkButton() = default;
|
|
|
|
// OFFSET: 0x00893050
|
|
// FUNCTION: fn_11503
|
|
void UINaviLinkButton::Slot25(int, int) {
|
|
const auto end = this->link.find("</NAVIL>");
|
|
|
|
if (end == std::string::npos) {
|
|
return;
|
|
}
|
|
|
|
const auto start = end - 4;
|
|
const std::string coordinates = this->link.substr(start);
|
|
const int x = DecodeNavigationNumber(coordinates.substr(0, 2));
|
|
const int y = DecodeNavigationNumber(coordinates.substr(2, 2));
|
|
std::string map = this->link.substr(0, start);
|
|
|
|
if (map.find("<NAVIL>") != std::string::npos) {
|
|
map = map.substr(7);
|
|
}
|
|
|
|
if (!map.empty()) {
|
|
g_navigationManager.SetDestinationMap(map, x, y);
|
|
}
|
|
}
|