rodecomp/Source/UI/Window/UIRoMapWnd.cpp
ragnarok-clanker 674b54cbce Decompile 6 functions in Source/UI/Window/UIBattleMsgOptionWnd.cpp, Source/UI/Window/UIBattleMsgOptionWnd.h, ...
Batch #4473 by youko: 0 byte-identical, 6 confirmed by peer review.

- fn_12606 UIBattleMsgOptionWnd::RowAt: logic confirmed by peer review
- fn_12614 UIQuickSlotWnd::SlotX: logic confirmed by peer review
- fn_12615 UIQuickSlotWnd::SlotAt: logic confirmed by peer review
- fn_12619 UISubChatHisWnd::Slot42: logic confirmed by peer review
- fn_12611 SetRoMapMarker: logic confirmed by peer review
- fn_12622 UIRoMapWnd::ClearRecords: logic confirmed by peer review

Peer-reviewed-by: eAthena, willerthal, KWDev
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 03:25:15 +00:00

36 lines
1 KiB
C++

#include "UI/Window/UIRoMapWnd.h"
#include "Contents/MapSkyMgr.h"
// OFFSET: 0x00931080
// FUNCTION: fn_12697
void UIRoMapWnd::Slot25(int, int) {
}
// OFFSET: 0x0091BE80
// FUNCTION: fn_12611
void SetRoMapMarker(std::string name, const WorldViewArea& area, RoMapMarker& marker) {
const int width = area.right - area.left;
const int height = area.bottom - area.top;
const float centerX = static_cast<float>(width) * g_depthAverageHalf + static_cast<float>(area.left);
const float centerY = static_cast<float>(height) * g_depthAverageHalf + static_cast<float>(area.top);
marker.name = name;
marker.area = area;
marker.centerX = centerX;
marker.centerY = centerY;
marker.width = static_cast<float>(width);
marker.height = static_cast<float>(height);
}
// OFFSET: 0x0091CF40
// FUNCTION: fn_12622
void UIRoMapWnd::ClearRecords() {
this->m_records.clear();
this->unknown_00D0 = 0;
this->unknown_00C4 = 0;
this->unknown_00C8 = 0;
this->unknown_00C0 = 0;
this->unknown_00BC = 0;
this->unknown_00CC = 0;
}