forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 25
/
GaugeClass.h
41 lines (33 loc) · 860 Bytes
/
GaugeClass.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
#pragma once
#include <ControlClass.h>
class NOVTABLE GaugeClass : public ControlClass
{
public:
//GaugeClass
virtual bool SetMaximum(int value) R0;
virtual bool SetValue(int value) R0;
virtual int GetValue() R0;
virtual void SetThumb(bool value) RX; // Set HasThumb
virtual int GetThumbPixel() R0; // return 4 if not overloaded
virtual void DrawThumb() RX;
virtual int PixelToValue(int pixel) R0;
virtual int ValueToPixel(int value) R0;
//Non virtual
//Statics
//Constructors
GaugeClass(unsigned int nID, int nX, int nY, int nWidth, int nHeight) noexcept
: ControlClass(noinit_t()) { JMP_THIS(0x4E2500); }
protected:
explicit __forceinline GaugeClass(noinit_t) noexcept
: ControlClass(noinit_t())
{
}
//Properties
public:
bool IsColorized;
bool HasThumb;
bool IsHorizontal;
int MaxValue;
int CurrentValue;
int ClickDiff;
};