2020-03-22 14:23:40 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CConsole
|
|
|
|
{
|
2020-03-22 14:26:18 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_LINES = 8, // BUG? only shows 7
|
|
|
|
MAX_STR_LEN = 40,
|
2020-03-22 14:23:40 +00:00
|
|
|
};
|
|
|
|
|
2020-03-22 14:26:18 +00:00
|
|
|
uint8 m_nLineCount;
|
|
|
|
uint8 m_nCurrentLine;
|
|
|
|
wchar Buffers[MAX_LINES][MAX_STR_LEN];
|
|
|
|
uint32 m_aTimer[MAX_LINES];
|
|
|
|
uint8 m_aRed[MAX_LINES];
|
|
|
|
uint8 m_aGreen[MAX_LINES];
|
|
|
|
uint8 m_aBlue[MAX_LINES];
|
2020-03-22 14:23:40 +00:00
|
|
|
public:
|
2020-03-22 14:26:18 +00:00
|
|
|
void AddLine(char *s, uint8 r, uint8 g, uint8 b);
|
|
|
|
void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
|
2020-03-22 14:23:40 +00:00
|
|
|
void Display();
|
|
|
|
};
|
|
|
|
|
2020-03-22 11:26:35 +00:00
|
|
|
extern CConsole &TheConsole;
|