Batch #16172 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_13238 UIItemStoreWnd::~UIItemStoreWnd: logic confirmed by peer review (already on main) - fn_13239 UIItemWnd::~UIItemWnd: logic confirmed by peer review (already on main) Peer-reviewed-by: gordaoprogramas, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_ITEM_UIITEMBASEWND_H
|
|
#define RAGNAROK_SOURCE_UI_ITEM_UIITEMBASEWND_H
|
|
|
|
#include "Contents/Items/ItemInfo.h"
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <cstddef>
|
|
#include <list>
|
|
|
|
class UIItemBaseWnd : public UIFrameWnd {
|
|
public:
|
|
UIItemBaseWnd();
|
|
~UIItemBaseWnd() override {}
|
|
void DragAndDrop(int x, int y, std::intptr_t value) override;
|
|
void StoreInfo() override;
|
|
void OnCreate(int width, int height) override;
|
|
void Paint() override;
|
|
void OnWheel(int value) override;
|
|
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
|
|
|
|
int GetItemIndexAt(int x, int y);
|
|
__declspec(noinline) ITEM_INFO GetItemByIndex(int index);
|
|
ITEM_INFO GetItemAt(int x, int y);
|
|
void UpdateScrollBar();
|
|
|
|
/* 00B4 */ int showQuantity;
|
|
/* 00B8 */ int alternateButtonBar;
|
|
/* 00BC */ UIWindow* resizer;
|
|
/* 00C0 */ UIWindow* scrollBar;
|
|
/* 00C4 */ UIWindow* buttons[5];
|
|
/* 00D8 */ int scroll;
|
|
/* 00DC */ int visibleRows;
|
|
/* 00E0 */ int columns;
|
|
/* 00E4 */ int scrollOverflow;
|
|
/* 00E8 */ std::list<ITEM_INFO> items;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(UIItemBaseWnd, scroll) == 0xD8);
|
|
static_assert(offsetof(UIItemBaseWnd, items) == 0xE8);
|
|
static_assert(sizeof(UIItemBaseWnd) == 0xF0);
|
|
#endif
|
|
|
|
#endif
|