mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 17:23:45 +01: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
@ -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…
Reference in New Issue
Block a user