Close console when it loses focus but it is still on screen
[oweals/minetest.git] / src / guiChatConsole.cpp
index 3dfd0090a6c6b224898b06ed678ec41269f33eb8..c1219fb808c29fe535e01b3267b5e7c4070f8444 100644 (file)
@@ -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;