forked from GuillemFP/DoubleDragon3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleUI.h
60 lines (45 loc) · 1.12 KB
/
ModuleUI.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
55
56
57
58
59
60
#ifndef MODULEUI_H
#define MODULEUI_H
#define MODULE_UI "ModuleUI"
#define UI_SECTION "Config.Modules.UI"
#include "Module.h"
#include "Point.h"
class Player;
class Timer;
struct TextLine;
class ModuleUI : public Module
{
public:
ModuleUI(bool active);
~ModuleUI();
bool Start();
bool CleanUp();
update_status Update();
int GetLength(int number);
void IntToString(int number, char* string) { IntToString(number, GetLength(number), string); }
void IntToString(int number, int final_length, char* string);
int GetNumberOfUIs() const;
private:
void PrintStrings(int player, bool first_lines, const char** string_array);
private:
iPoint* health_pos;
int* health_fonts;
iPoint* name_pos;
iPoint* face_pos;
const char* time_string;
iPoint time_name = { 0,0 };
iPoint time_number = { 0,0 };
const char* coins_string;
iPoint coins_name = { 0,0 };
iPoint coins_number = { 0,0 };
int name_font;
char* number_string;
const char** string_noplayer;
const char** string_deadplayer;
int num_noplayer_str;
bool first_lines = true;
int iPLAYERS_IN_UI = 1;
int iNUMBER_LENGTH = 4;
Timer* timer;
};
#endif // !MODULEUI_H