forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathShapeButtonClass.h
75 lines (58 loc) · 1.4 KB
/
ShapeButtonClass.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
#pragma once
#include <ToggleClass.h>
class ConvertClass;
class SHPStruct;
enum class ShapeButtonFlag : int
{
UpShape = 0x0,
DownShape = 0x1,
DisabledShape = 0x2
};
class NOVTABLE ShapeButtonClass : public ToggleClass
{
public:
//ShapeButtonClass
virtual void SetShape(SHPStruct* pSHP, int Width, int Height) RX;
//Non virtual
ShapeButtonClass& operator=(ShapeButtonClass& const another)
JMP_THIS(0x4B5630);
void ClearShape()
JMP_THIS(0x69DE70);
void SetLoadedStatus()
JMP_THIS(0x69DEA0);
bool StartFlashing(int nDelay, int nInitDelay, bool bStart)
JMP_THIS(0x69DFC0);
bool StopFlashing()
JMP_THIS(0x69DFF0);
bool AI()
JMP_THIS(0x69E010); // Flash_AI
bool IsFlashing()
JMP_THIS(0x69E050);
// bool ToFlash()
// JMP_THIS(0x69E060); // no need for this function
//Statics
//Constructors
ShapeButtonClass() noexcept
:ShapeButtonClass(noinit_t())
JMP_THIS(0x69DCF0);
ShapeButtonClass(unsigned int nID, int nX, int nY, int nWidth, int nHeight, bool bIsAlpha) noexcept
: ShapeButtonClass(noinit_t())
JMP_THIS(0x69DD30);
protected:
explicit __forceinline ShapeButtonClass(noinit_t) noexcept
: ToggleClass(noinit_t())
{ }
//Properties
public:
bool IsToFlash;
int FlashDelay;
int FlashCounter;
bool UseFlash; // ReflectButtonState
Point2D DrawPosition;
bool UseSidebarSurface;
ConvertClass* Drawer;
bool IsDrawn;
bool IsAlpha;
SHPStruct* ShapeData;
bool IsShapeLoaded;
};