Batch #1798 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review. - fn_12671 UIQuickSlotWnd::Paint: logic confirmed by peer review - fn_12677 UISeekPartyWnd::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy Reviewed-by: ragnarok-clanker
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_SHORTCUTS_UIQUICKSLOTWND_H
|
|
#define RAGNAROK_SOURCE_UI_SHORTCUTS_UIQUICKSLOTWND_H
|
|
|
|
#include "UI/Shortcuts/ShortcutCooldowns.h"
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <cstdint>
|
|
#include <list>
|
|
|
|
class FontCache;
|
|
struct TextLocale;
|
|
struct ClientSkills;
|
|
struct ItemInfo;
|
|
struct ItemDescriptions;
|
|
|
|
struct QuickSlotPainting {
|
|
FontCache& fonts;
|
|
const TextLocale& locale;
|
|
ClientSkills& skills;
|
|
const std::list<ItemInfo>& inventory;
|
|
ItemDescriptions& descriptions;
|
|
std::list<ShortcutCooldownIcon>& icons;
|
|
ShortcutCooldowns& cooldowns;
|
|
CooldownDrawing& drawing;
|
|
const CooldownClock& clock;
|
|
RenderCommandPool& commands;
|
|
CRenderSystemBase& system;
|
|
};
|
|
|
|
#pragma pack(push, 1)
|
|
struct QuickSlotEntry {
|
|
/* 0000 */ unsigned char skill;
|
|
/* 0001 */ std::uint32_t id;
|
|
/* 0005 */ std::int16_t count;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
class UIQuickSlotWnd : public UIFrameWnd {
|
|
public:
|
|
void Paint() override;
|
|
|
|
protected:
|
|
/* 00B4 */ int m_selected;
|
|
/* 00B8 */ int unknown_00B8;
|
|
/* 00BC */ QuickSlotEntry m_entries[2];
|
|
QuickSlotPainting* m_painting;
|
|
};
|
|
|
|
static_assert(sizeof(QuickSlotEntry) == 7);
|
|
|
|
#endif
|