forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MouseClass.h
104 lines (89 loc) · 2.14 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
98
99
100
101
102
103
104
#pragma once
#include <SidebarClass.h>
class MouseCursor {
public:
static const size_t CursorCount = 86;
static MouseCursor* const First;
static MouseCursor& GetCursor(MouseCursorType cursor) {
return First[static_cast<int>(cursor)];
}
int Frame;
int Count;
int Interval;
int MiniFrame;
int MiniCount;
MouseHotSpotX HotX;
MouseHotSpotY HotY;
MouseCursor() :
Frame(0),
Count(1),
Interval(1),
MiniFrame(-1),
MiniCount(0),
HotX(MouseHotSpotX::Center),
HotY(MouseHotSpotY::Middle)
{ };
MouseCursor (int _F, int _C, int _I, int _MF, int _MC, MouseHotSpotX _X, MouseHotSpotY _Y) :
Frame(_F),
Count(_C),
Interval(_I),
MiniFrame(_MF),
MiniCount(_MC),
HotX(_X),
HotY(_Y)
{ };
};
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:
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:
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 MouseClass *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;
};