mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
when pause menu is activated, move mouse cursor on top of the disconnect button, for convenience.
This commit is contained in:
parent
12ca835e14
commit
acd7ce897d
1 changed files with 3 additions and 0 deletions
|
@ -1135,6 +1135,9 @@ void the_game(
|
||||||
// It will delete itself by itself
|
// It will delete itself by itself
|
||||||
(new GUIPauseMenu(guienv, guiroot, -1, g_gamecallback,
|
(new GUIPauseMenu(guienv, guiroot, -1, g_gamecallback,
|
||||||
&g_menumgr))->drop();
|
&g_menumgr))->drop();
|
||||||
|
|
||||||
|
// Move mouse cursor on top of the disconnect button
|
||||||
|
input->setMousePos(displaycenter.X, displaycenter.Y+25);
|
||||||
}
|
}
|
||||||
else if(input->wasKeyDown(getKeySetting("keymap_chat")))
|
else if(input->wasKeyDown(getKeySetting("keymap_chat")))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue