]> git.lizzy.rs Git - minetest.git/blobdiff - src/chat.h
Use single box for halo mesh
[minetest.git] / src / chat.h
index 19b48456ec7dd013b1c2aba40fdde360488ef360..5d26baf7bbdb247f09197bf52b5d74d5eacb2785 100644 (file)
@@ -20,12 +20,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef CHAT_HEADER
 #define CHAT_HEADER
 
-#include "irrlichttypes_bloated.h"
+#include "irrlichttypes.h"
 #include <string>
 #include <vector>
 #include <list>
 
-// Chat console related classes, only used by the client
+// Chat console related classes
 
 struct ChatLine
 {
@@ -123,7 +123,7 @@ class ChatBuffer
        u32 m_scrollback;
        // Array of unformatted chat lines
        std::vector<ChatLine> m_unformatted;
-       
+
        // Number of character columns in console
        u32 m_cols;
        // Number of character rows in console
@@ -142,8 +142,9 @@ class ChatPrompt
        ChatPrompt(std::wstring prompt, u32 history_limit);
        ~ChatPrompt();
 
-       // Input character
+       // Input character or string
        void input(wchar_t ch);
+       void input(const std::wstring &str);
 
        // Submit, clear and return current line
        std::wstring submit();
@@ -212,7 +213,7 @@ class ChatPrompt
        std::wstring m_line;
        // History buffer
        std::vector<std::wstring> m_history;
-       // History index (0 <= m_history_index <= m_history.size()) 
+       // History index (0 <= m_history_index <= m_history.size())
        u32 m_history_index;
        // Maximum number of history entries
        u32 m_history_limit;