8 #ifndef NDK_CONSOLE_HPP 9 #define NDK_CONSOLE_HPP 11 #include <Nazara/Core/HandledObject.hpp> 12 #include <Nazara/Core/ObjectHandle.hpp> 13 #include <Nazara/Graphics/Sprite.hpp> 14 #include <Nazara/Graphics/TextSprite.hpp> 15 #include <Nazara/Utility/Node.hpp> 16 #include <Nazara/Utility/SimpleTextDrawer.hpp> 17 #include <NDK/EntityOwner.hpp> 31 class NDK_API
Console :
public Nz::Node,
public Nz::HandledObject<Console>
43 inline unsigned int GetCharacterSize()
const;
51 inline bool IsVisible()
const;
53 void SendCharacter(char32_t character);
54 void SendEvent(
const Nz::WindowEvent& event);
56 void SetCharacterSize(
unsigned int size);
60 void Show(
bool show =
true);
69 void RefreshHistory();
77 std::size_t m_historyPosition;
78 std::vector<Nz::String> m_commandHistory;
79 std::vector<Line> m_historyLines;
85 Nz::LuaState& m_state;
88 Nz::SimpleTextDrawer m_historyDrawer;
89 Nz::SimpleTextDrawer m_inputDrawer;
94 unsigned int m_characterSize;
95 unsigned int m_maxHistoryLines;
99 #include <NDK/Console.inl> 101 #endif // NDK_CONSOLE_HPP TODO: For now is unable to display different color in the history, it needs a RichTextDrawer to do so...
Definition: Algorithm.hpp:12
Core class that represents a color.
Definition: Color.hpp:18
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
NDK class that represents the owner of the entity and so its lifetime.
Definition: EntityOwner.hpp:14
Core class that represents a string.
Definition: String.hpp:22
NDK class that represents a console to help development with Lua scripting.
Definition: Console.hpp:31
NDK class that represents a world.
Definition: World.hpp:25