From effa24737d6997dc40508533635accca3ed099e9 Mon Sep 17 00:00:00 2001 From: "Esteban I. Ruiz Moreno" Date: Sun, 2 Jun 2013 21:16:32 -0300 Subject: Use the console instead of a dedicated window when pressing keymap_chat/cmd keymap_console opens a full window for chat history browsing. --- src/guiChatConsole.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/guiChatConsole.h') diff --git a/src/guiChatConsole.h b/src/guiChatConsole.h index 652b265a4..7b9fc6732 100644 --- a/src/guiChatConsole.h +++ b/src/guiChatConsole.h @@ -51,11 +51,16 @@ public: void closeConsole(); // Close the console immediately, without animation. void closeConsoleAtOnce(); + // Set whether to close the console after the user presses enter. + void setCloseOnEnter(bool close) { m_close_on_enter = close; } // Return the desired height (fraction of screen size) // Zero if the console is closed or getting closed f32 getDesiredHeight() const; + // Replace actual line when adding the actual to the history (if there is any) + void replaceAndAddToHistory(std::wstring line); + // Change how the cursor looks void setCursor( bool visible, @@ -95,6 +100,8 @@ private: // should the console be opened or closed? bool m_open; + // should it close after you press enter? + bool m_close_on_enter; // current console height [pixels] s32 m_height; // desired height [pixels] -- cgit v1.2.3