Batch #3838 by youko: 7 byte-identical, 1 confirmed by peer review. - fn_16120 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::Paint: byte-identical - fn_16195 CUIProbabilityTable::OnButtonClick: byte-identical - fn_16198 CUIProbabilityTable::OnPrepareItem: byte-identical - fn_16200 ProbabilityTable::CUIItem::Paint: byte-identical - fn_16202 ProbabilityTable::CUIItem::Slot16: logic confirmed by peer review - fn_16204 ProbabilityTable::CUIItem::Slot25: byte-identical - fn_16205 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::UpdateScrollBar: byte-identical - fn_16223 CUIListBoxEx<OngoingQuestInfo::CUIRewardItem,OngoingQuestInfo::CRewardItemData>::ClearItems: byte-identical Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/ProbabilityTable/UIProbabilityTable.cpp
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_PROBABILITYTABLE_UIPROBABILITYTABLE_H
|
|
#define RAGNAROK_SOURCE_UI_PROBABILITYTABLE_UIPROBABILITYTABLE_H
|
|
|
|
#include "UI/FrameSkin.h"
|
|
#include "UI/Lists/UIListBoxTemplate.h"
|
|
#include "UI/Text/UITextViewerControl.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace ProbabilityTable {
|
|
|
|
class CItemData {
|
|
public:
|
|
/* 0000 */ std::uint32_t color;
|
|
/* 0004 */ std::string name;
|
|
/* 001C */ int unknown_001C;
|
|
/* 0020 */ double probability;
|
|
};
|
|
|
|
class CUIItem : public CUIListItem {
|
|
public:
|
|
void Slot16() override;
|
|
void Paint() override;
|
|
void Slot25(int x, int y) override;
|
|
|
|
/* 00E8 */ CUITextViewer* nameText;
|
|
/* 00EC */ CUITextViewer* probabilityText;
|
|
/* 00F0 */ std::uint32_t backgroundColor;
|
|
/* 00F4 */ unsigned char unknown_00F4[0x04];
|
|
};
|
|
|
|
}
|
|
|
|
class CUIProbabilityTable : public CUIFrameWnd {
|
|
public:
|
|
void Paint() override;
|
|
|
|
void OnButtonClick();
|
|
void OnPrepareItem(ProbabilityTable::CUIItem* item, const ProbabilityTable::CItemData& data);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ProbabilityTable::CItemData) == 0x28);
|
|
static_assert(sizeof(ProbabilityTable::CUIItem) == 0xF8);
|
|
#endif
|
|
|
|
#endif
|