rodecomp/Source/UI/Items/UIItemRepairWnd.h
ragnarok-clanker 61b4c3f6d9 Decompile fn_13599 (UIItemRepairWnd::BuildReplayRecords)
Batch #8141 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_13599 UIItemRepairWnd::BuildReplayRecords: logic confirmed by peer review

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

48 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_ITEMS_UIITEMREPAIRWND_H
#define RAGNAROK_SOURCE_UI_ITEMS_UIITEMREPAIRWND_H
#include "UI/Window/UIFrameWnd.h"
#include <cstdint>
#include <list>
#include <vector>
struct UIButtonContext;
struct WindowResponseRecorder;
struct UIListBoxContext;
class UIListBox;
#pragma pack(push, 1)
struct UIItemRepairEntry {
/* 0000 */ std::int16_t index;
/* 0002 */ std::int32_t itemId;
/* 0006 */ unsigned char unknown_0006[0x12];
};
#pragma pack(pop)
static_assert(sizeof(UIItemRepairEntry) == 0x18);
class UIItemRepairWnd : public UIFrameWnd {
public:
UIItemRepairWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls, UIListBoxContext& listContext, WindowResponseRecorder& recorder);
~UIItemRepairWnd() override;
void Slot15(int width, int height) override;
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
std::vector<unsigned char> BuildReplayRecords();
protected:
UIButtonContext* m_controls;
UIListBoxContext* m_listContext;
public:
/* 00B4 */ UIListBox* m_list;
/* 00B8 */ std::vector<int> itemIds;
/* 00C4 */ std::vector<int> indices;
/* 00D0 */ std::list<UIItemRepairEntry> entries;
protected:
WindowResponseRecorder* m_recorder;
};
#endif