mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add chat console scrollbar (#15104)
This commit is contained in:
parent
d15214af52
commit
d4a6df3389
4 changed files with 65 additions and 16 deletions
|
@ -1799,7 +1799,9 @@ void Game::processUserInput(f32 dtime)
|
|||
m_game_focused = true;
|
||||
}
|
||||
|
||||
if (!guienv->hasFocus(gui_chat_console.get()) && gui_chat_console->isOpen()) {
|
||||
if (!guienv->hasFocus(gui_chat_console.get()) && gui_chat_console->isOpen()
|
||||
&& !gui_chat_console->isMyChild(guienv->getFocus()))
|
||||
{
|
||||
gui_chat_console->closeConsoleAtOnce();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue