2020-03-22 15:23:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CConsole
|
|
|
|
{
|
2020-03-22 15:26:18 +01:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_LINES = 8, // BUG? only shows 7
|
|
|
|
MAX_STR_LEN = 40,
|
2020-03-22 15:23:40 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 15:26:18 +01: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 15:23:40 +01:00
|
|
|
public:
|
2020-03-22 15:26:18 +01:00
|
|
|
void AddLine(char *s, uint8 r, uint8 g, uint8 b);
|
|
|
|
void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
|
2020-03-22 15:23:40 +01:00
|
|
|
void Display();
|
2020-03-22 16:48:16 +01:00
|
|
|
void Init() { m_nCurrentLine = 0; m_nLineCount = 0; }
|
2020-03-22 15:23:40 +01:00
|
|
|
};
|
|
|
|
|
2020-03-22 17:19:07 +01:00
|
|
|
extern CConsole &TheConsole;
|