-
Notifications
You must be signed in to change notification settings - Fork 42
/
MouseClass.h
97 lines (81 loc) · 2.34 KB
/
MouseClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#pragma once
#include <SidebarClass.h>
class MouseCursor {
public:
static constexpr reference<MouseCursor, 0x82D028u, 86u> const Cursors{};
static MouseCursor& GetCursor(MouseCursorType cursor) {
return Cursors[static_cast<int>(cursor)];
}
MouseCursor() = default;
MouseCursor(
int frame, int count, int interval, int miniFrame, int miniCount,
MouseHotSpotX hotX, MouseHotSpotY hotY)
: Frame(frame), Count(count), Interval(interval), MiniFrame(miniFrame),
MiniCount(miniCount), HotX(hotX), HotY(hotY)
{ }
int Frame{ 0 };
int Count{ 1 };
int Interval{ 1 };
int MiniFrame{ -1 };
int MiniCount{ 0 };
MouseHotSpotX HotX{ MouseHotSpotX::Center };
MouseHotSpotY HotY{ MouseHotSpotY::Middle };
};
struct TabDataClass
{
int TargetValue;
int LastValue;
bool NeedsRedraw;
bool ValueIncreased;
bool ValueChanged;
PROTECTED_PROPERTY(BYTE, align_B);
int ValueDelta;
};
class TabClass : public SidebarClass, public INoticeSink
{
public:
//Static
static constexpr constant_ptr<TabClass, 0x87F7E8u> const Instance{};
TabDataClass TabData;
TimerStruct unknown_timer_552C;
TimerStruct InsufficientFundsBlinkTimer;
BYTE unknown_byte_5544;
bool MissionTimerPinged;
BYTE unknown_byte_5546;
PROTECTED_PROPERTY(BYTE, padding_5547);
};
class ScrollClass : public TabClass
{
public:
//Static
static constexpr constant_ptr<ScrollClass, 0x87F7E8u> const Instance{};
DWORD unknown_int_5548;
BYTE unknown_byte_554C;
PROTECTED_PROPERTY(BYTE, align_554D[3]);
DWORD unknown_int_5550;
DWORD unknown_int_5554;
BYTE unknown_byte_5548;
BYTE unknown_byte_5549;
BYTE unknown_byte_554A;
PROTECTED_PROPERTY(BYTE, padding_554B);
};
class NOVTABLE MouseClass : public ScrollClass
{
public:
//Static
static constexpr constant_ptr<MouseClass, 0x87F7E8u> const Instance{};
//Destructor
virtual ~MouseClass() RX;
//GScreenClass
virtual bool SetCursor(MouseCursorType idxCursor, bool miniMap) override R0;
virtual bool UpdateCursor(MouseCursorType idxCursor, bool miniMap) override R0;
virtual bool RestoreCursor() override R0;
virtual void UpdateCursorMinimapState(bool miniMap) override RX;
//DisplayClass
virtual MouseCursorType GetLastMouseCursor() override RT(MouseCursorType);
bool MouseCursorIsMini;
PROTECTED_PROPERTY(BYTE, unknown_byte_5559[3]);
MouseCursorType MouseCursorIndex;
MouseCursorType MouseCursorLastIndex;
int MouseCursorCurrentFrame;
};