My Project
 
Loading...
Searching...
No Matches
statuspane.h
Go to the documentation of this file.
1#pragma once
2
3#include "component.h"
4#include "button.h"
5
6class NinePatch;
7class Image;
8class Emitter;
9class BitmapText;
10class Compass;
11class DangerIndicator;
12class ResumeButton;
13class BuffIndicator;
14
15class StatusPane :public Component{
16private:
17 class MenuButton:public Button{
18 private:
19 Image* image;
20
21 protected:
22 virtual void createChildren();
23 virtual void layout();
24 virtual void onTouchDown();
25 virtual void onTouchUp();
26 virtual void onClick();
27 public:
28 MenuButton();
29 };
30
31 void layoutTags();
32private:
33 NinePatch* shield;
34 Image* avatar;
35 Emitter* blood;
36
37 int lastTier;
38
39 Image* hp;
40 Image* exp;
41
42 int lastLvl;
43 int lastKeys;
44
45 BitmapText* level;
46 BitmapText* depth;
47 BitmapText* keys;
48
49 DangerIndicator* danger;
50 //LootIndicator loot;
51 ResumeButton* resume;
52 BuffIndicator* buffs;
53 Compass* compass;
54
55 MenuButton* btnMenu;
56 bool tagDanger = false;
57 bool tagLoot = false;
58 bool tagResume = false;
59protected:
60 virtual void createChildren();
61 virtual void layout();
62public:
63 StatusPane();
64
65 virtual void update();
66};
Definition buffindicator.h:12
Definition compass.h:5
Definition dangerindicator.h:8
Definition resumebutton.h:6
virtual void update()
Definition statuspane.cpp:155
virtual void layout()
Definition statuspane.cpp:115
StatusPane()
Definition statuspane.cpp:142
virtual void createChildren()
Definition statuspane.cpp:60