rodecomp/Source/UI/Buttons/UINaviLinkButton.cpp
ragnarok-clanker e844522fe1 Maintenance: [forced, user-approved] Remove fabricated UIListBoxContext and NavigationDestination (family B; follow-up to #10188). Ev
Batch #10189 by ragnarok-clanker: forced by an admin (15 lower score(s), 71 changed function(s)); checked with 118 compiled unit(s), including every includer of Source/UI/Buttons/UINaviLinkButton.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/EntryQueue/UIEntryQueueWnd.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UIComboBox.h, Source/UI/Lists/UIComboBoxEx.h, Source/UI/Lists/UIListBox.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/Lists/UIListBoxNavi.h, Source/UI/Lists/UIListBoxNaviSearch.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UIPackageBoxNameList.h, Source/UI/Lists/UIReplayListBox.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITextViewer.h, Source/UI/UIRoundBoxTooltipWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISelectReplayDataWnd.h, Source/UI/Window/UIShowWarpWnd.h.
2026-11-02 20:18:32 +00:00

35 lines
944 B
C++

#include "Contents/NavigationManager.h"
#include "UI/Text/NavigationLink.h"
#include "UI/Buttons/UINaviLinkButton.h"
// OFFSET: 0x0086DF60
// FUNCTION: fn_11062
UINaviLinkButton::UINaviLinkButton(UIWindowContext& windows) : UITextButton(windows) {
}
// OFFSET: 0x00873A90
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);
}
}