summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.h
blob: 8d964c53fcfa6a12202c63be91bb41845d53ae1c (plain)
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
#ifndef __KOOPATLAS_HUD_H
#define __KOOPATLAS_HUD_H

#include "koopatlas/core.h"

class dWMHud_c : public dBase_c {
	public:
		dWMHud_c();

		int onCreate();
		int onDelete();
		int onExecute();
		int onDraw();

		bool layoutLoaded;
		m2d::EmbedLayout_c layout;

		void updateText();

		void showPointBar();
		void hidePointBar();

		void setPointName();
		void setText(const char *str, int length = -1);
		void setText(const wchar_t *str, int length = -1);

		static dWMHud_c *build();
		static dWMHud_c *instance;

	private:
		bool isPointBarShown;
};

#endif