-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathMapTimer.h
56 lines (41 loc) · 1.01 KB
/
MapTimer.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
#pragma once
#include "Bedrock/WhiteBoard/WhiteBoard.h"
class GW2MapTimer : public CWBItem
{
struct Event
{
CString name;
CString waypoint;
CString worldBossId;
int length;
int start;
CColor color;
};
struct Map
{
CString name;
CString chestId;
int Length;
int Start;
CString id;
TBOOL display = true;
CArray<Event> events;
};
CPoint lastpos;
virtual void OnDraw( CWBDrawAPI* API );
void SetLayout( CXMLNode& node );
bool beingFetched = false;
TS32 lastFetchTime = 0;
bool hasWorldBossInfo = false;
std::thread fetchThread;
CArray<CString> worldBosses;
CArray<CString> mapchests;
LIGHTWEIGHT_CRITICALSECTION critSec;
public:
CArray<Map> maps;
GW2MapTimer( CWBItem* Parent, CRect Position );
virtual ~GW2MapTimer();
static CWBItem* Factory( CWBItem* Root, CXMLNode& node, CRect& Pos );
WB_DECLARE_GUIITEM( _T( "maptimer" ), CWBItem );
virtual TBOOL IsMouseTransparent( CPoint& ClientSpacePoint, WBMESSAGE MessageType );
};