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:
parent
42134bb49e
commit
53eedd3ba4
4 changed files with 42 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue