Console: Add support for text color

This commit is contained in:
Lynix
2019-09-22 13:07:00 +02:00
committed by Jérôme Leclercq
parent 8e4df4cadc
commit 1ea653ab5b
4 changed files with 7 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ namespace Ndk
class AbstractTextAreaWidget;
class Console;
class Entity;
class RichTextAreaWidget;
class ScrollAreaWidget;
class TextAreaWidget;
@@ -46,7 +47,7 @@ namespace Ndk
void ClearFocus();
inline unsigned int GetCharacterSize() const;
inline const TextAreaWidget* GetHistory() const;
inline const RichTextAreaWidget* GetHistory() const;
inline const TextAreaWidget* GetInput() const;
inline const Nz::FontRef& GetTextFont() const;
@@ -73,7 +74,7 @@ namespace Ndk
std::vector<Nz::String> m_commandHistory;
std::vector<Line> m_historyLines;
ScrollAreaWidget* m_historyArea;
TextAreaWidget* m_history;
RichTextAreaWidget* m_history;
TextAreaWidget* m_input;
Nz::FontRef m_defaultFont;
unsigned int m_characterSize;

View File

@@ -19,7 +19,7 @@ namespace Ndk
* \return History of the console
*/
inline const TextAreaWidget* Console::GetHistory() const
inline const RichTextAreaWidget* Console::GetHistory() const
{
return m_history;
}