diff options
author | Esteban I. Ruiz Moreno <exio4.com@gmail.com> | 2013-06-04 23:26:52 -0300 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-05 21:14:14 +0200 |
commit | 7cb521725569b7eda98af40f7e4b4eb63afff633 (patch) | |
tree | acb7380979a3cae877299d6669d14ce2de6325ba /src/guiChatConsole.cpp | |
parent | 4f6bec19bc0d838db6d1236e7815c0113bd05e81 (diff) | |
download | minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.tar.gz minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.tar.bz2 minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.zip |
Close console when it loses focus but it is still on screen
Diffstat (limited to 'src/guiChatConsole.cpp')
-rw-r--r-- | src/guiChatConsole.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index 3dfd0090a..c1219fb80 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -134,6 +134,11 @@ void GUIChatConsole::openConsole(f32 height) reformatConsole(); } +bool GUIChatConsole::isOpen() const +{ + return m_open; +} + bool GUIChatConsole::isOpenInhibited() const { return m_open_inhibited > 0; |