1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Introduce hotkey for calling up a command window

This is just a chat window with the / text pre-loaded.
This commit is contained in:
Giuseppe Bilotta 2011-08-13 18:16:49 +02:00
parent 42134bb49e
commit 53eedd3ba4
4 changed files with 42 additions and 0 deletions

View file

@ -1320,6 +1320,14 @@ void the_game(
&g_menumgr, dest,
L""))->drop();
}
else if(input->wasKeyDown(getKeySetting("keymap_cmd")))
{
TextDest *dest = new TextDestChat(&client);
(new GUITextInputMenu(guienv, guiroot, -1,
&g_menumgr, dest,
L"/"))->drop();
}
else if(input->wasKeyDown(getKeySetting("keymap_freemove")))
{
if(g_settings.getBool("free_move"))