Batch #10249 by ragnarok-clanker: forced by an admin (0 lower score(s), 4 changed function(s)); checked with 242 compiled unit(s), including every includer of Source/UI/Cooldowns/CooldownDrawing.h, Source/UI/Shortcuts/ShortcutCooldowns.h, Source/UI/Shortcuts/ShortcutPainting.h, Source/UI/Shortcuts/UIQuickSlotWnd.h, Source/UI/Shortcuts/UIShortCutWnd.h.
48 lines
1.2 KiB
C++
48 lines
1.2 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>
|
|
|
|
struct ITEM_INFO;
|
|
class AutomaticSkills;
|
|
|
|
#pragma pack(push, 1)
|
|
struct QuickSlotEntry {
|
|
/* 0000 */ unsigned char skill;
|
|
/* 0001 */ std::uint32_t id;
|
|
/* 0005 */ std::int16_t count;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
struct QuickSlotWndInfo;
|
|
|
|
class UIQuickSlotWnd : public UIFrameWnd {
|
|
public:
|
|
UIQuickSlotWnd();
|
|
void Slot10(int x, int y, std::intptr_t argument) override;
|
|
void Slot11() override;
|
|
void Slot15(int width, int height) override;
|
|
void Slot19() override;
|
|
void Paint() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot28(int x, int y) override;
|
|
void Slot32(int x, int y) 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 SlotX(int slot);
|
|
int SlotAt(int x, int y);
|
|
|
|
protected:
|
|
/* 00B4 */ int m_selected;
|
|
/* 00B8 */ QuickSlotWndInfo* m_saved;
|
|
/* 00BC */ QuickSlotEntry m_entries[2];
|
|
void* unknown_painting;
|
|
};
|
|
|
|
static_assert(sizeof(QuickSlotEntry) == 7);
|
|
|
|
#endif
|