forked from BoyC/GW2TacO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DungeonProgress.h
47 lines (34 loc) · 853 Bytes
/
DungeonProgress.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
#pragma once
#include "Bedrock/WhiteBoard/WhiteBoard.h"
#include <thread>
class DungeonPath
{
public:
CString name;
CString type;
bool finished = false;
bool frequenter = false;
};
class Dungeon
{
public:
CString name;
CString shortName;
CArray<DungeonPath> paths;
};
class DungeonProgress : public CWBItem
{
CPoint lastpos;
virtual void OnDraw( CWBDrawAPI *API );
bool beingFetched = false;
TS32 lastFetchTime = 0;
bool hasFullDungeonInfo = false;
std::thread fetchThread;
CArray<Dungeon> dungeons;
public:
DungeonProgress( CWBItem *Parent, CRect Position );
virtual ~DungeonProgress();
static CWBItem *Factory( CWBItem *Root, CXMLNode &node, CRect &Pos );
WB_DECLARE_GUIITEM( _T( "dungeonprogress" ), CWBItem );
virtual TBOOL IsMouseTransparent( CPoint &ClientSpacePoint, WBMESSAGE MessageType );
};