mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Unlock cursor when opening console
This commit is contained in:
parent
effa24737d
commit
3edb7575a1
5 changed files with 26 additions and 23 deletions
|
@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define GUICHATCONSOLE_HEADER
|
||||
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "modalMenu.h"
|
||||
#include "chat.h"
|
||||
#include "config.h"
|
||||
|
||||
|
@ -33,7 +34,8 @@ public:
|
|||
gui::IGUIElement* parent,
|
||||
s32 id,
|
||||
ChatBackend* backend,
|
||||
Client* client);
|
||||
Client* client,
|
||||
IMenuManager* menumgr);
|
||||
virtual ~GUIChatConsole();
|
||||
|
||||
// Open the console (height = desired fraction of screen size)
|
||||
|
@ -86,11 +88,9 @@ private:
|
|||
void drawPrompt();
|
||||
|
||||
private:
|
||||
// pointer to the chat backend
|
||||
ChatBackend* m_chat_backend;
|
||||
|
||||
// pointer to the client
|
||||
Client* m_client;
|
||||
IMenuManager* m_menumgr;
|
||||
|
||||
// current screen size
|
||||
v2u32 m_screensize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue