Batch #4088 by youko: 2 byte-identical, 7 confirmed by peer review. - fn_12712 UINewChatWnd::Slot27: logic confirmed by peer review - fn_12718 UIQuickSlotWnd::Slot19: byte-identical - fn_12719 UISeekPartyWnd::Slot19: logic confirmed by peer review - fn_12721 UIHotKeyWnd::Slot32: byte-identical - fn_12726 UIBattleMsgOptionWnd::Slot35: logic confirmed by peer review - fn_12727 UISeekPartyListWnd::Slot35: logic confirmed by peer review - fn_12734 UIHotKeyWnd::UpdatePageButtons: logic confirmed by peer review - fn_12737 UINewChatWnd::Resize: logic confirmed by peer review - fn_12741 CUICollectionSystemWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: Yommy, superintelligence, KWDev 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/Window/UICollectionSystemWnd.cpp
52 lines
1.1 KiB
C++
52 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 ITEM_INFO;
|
|
struct ItemDescriptions;
|
|
|
|
struct QuickSlotPainting {
|
|
FontCache& fonts;
|
|
const TextLocale& locale;
|
|
ClientSkills& skills;
|
|
const std::list<ITEM_INFO>& 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 Slot19() override;
|
|
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
|