Batch #4089 by Yommy: 0 byte-identical, 3 confirmed by peer review. - fn_04109 UIItemReformWnd_List::Slot15: logic confirmed by peer review - fn_04126 UIItemReformWnd_List::Slot33: logic confirmed by peer review - fn_04128 UIItemReformWnd_List::UpdateScrollBar: logic confirmed by peer review Peer-reviewed-by: youko, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_UIITEMREFORMWND_H
|
|
#define RAGNAROK_SOURCE_UI_UIITEMREFORMWND_H
|
|
|
|
#include "Contents/Items/ItemInfo.h"
|
|
#include "UI/Buttons/UIButton.h"
|
|
#include "UI/Lists/UIScrollBar.h"
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <vector>
|
|
|
|
class UIItemReformWnd_List : public UIFrameWnd {
|
|
public:
|
|
void Move(int x, int y) override;
|
|
void Slot15(int width, int height) override;
|
|
void Slot28(int x, int y) override;
|
|
void Slot31(int x, int y) override;
|
|
void Slot33(int x, int y) override;
|
|
void Slot35(int delta) override;
|
|
|
|
/* 00B4 */ unsigned int itemHeight;
|
|
/* 00B8 */ unsigned int visibleCount;
|
|
/* 00BC */ unsigned int selectedIndex;
|
|
/* 00C0 */ unsigned int hoverIndex;
|
|
/* 00C4 */ unsigned int scrollPosition;
|
|
/* 00C8 */ UIScrollBar* scrollBar;
|
|
/* 00CC */ std::vector<ITEM_INFO> items;
|
|
|
|
void UpdateScrollBar();
|
|
};
|
|
|
|
class UIItemReformWnd_Item : public UIWindow {
|
|
public:
|
|
void Paint() override;
|
|
|
|
/* 007C */ ITEM_INFO* item;
|
|
};
|
|
|
|
class UIItemReformWnd_DetailBtn : public UIButton {
|
|
public:
|
|
void Paint() override;
|
|
void Slot47() override;
|
|
void Slot48() override;
|
|
};
|
|
|
|
class UIItemReformWnd_DetailMsg : public UIWindow {
|
|
public:
|
|
void Paint() override;
|
|
};
|
|
|
|
#endif
|