summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.h
blob: 6f10169813027e387803757fe03ebdd1d9b067d6 (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
36
37
38
39
40
41
42
43
44
#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;

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


		void enteredNode(dKPNode_s *node = 0);
		void leftNode();

	private:
		void playShowHeaderAnim();
		void playHideHeaderAnim();
		void loadHeaderInfo();

		bool willShowHeader;
		dKPNode_s *nodeForHeader;


		nw4r::lyt::Picture *Header_Centre, *Header_Right;
		nw4r::lyt::Picture *NormalExitFlag, *SecretExitFlag;
		nw4r::lyt::Picture *StarCoinOn[3];
		nw4r::lyt::TextBox *LevelName, *LevelNameS;
		nw4r::lyt::TextBox *LevelNumber, *LevelNumberS;
		nw4r::lyt::TextBox *WorldName, *WorldNameS;
		nw4r::lyt::TextBox *StarCoinCounter;
};

#endif