Fix hidden options window in screenshot mode

Opening the options window with Escape while in screenshot mode would
not draw the window, but would steal focus and deadlock the game's input

This is resolved by simply adding a path to draw modals even if
the UI is in "screenshot only" mode, as the escape menu should be
irrespective of that mode.
master
Webster Sheets 2020-03-24 12:06:16 -04:00
parent 3d6021be23
commit 05930f9307
3 changed files with 7 additions and 0 deletions

View File

@ -74,4 +74,8 @@ ui.registerModule('mainMenu', function()
drawModals(1)
end)
ui.registerModule('modal', function()
drawModals(1)
end)
return ModalWindow

View File

@ -297,6 +297,8 @@ ui.registerHandler('game', function(delta_t)
end
end
end
callModules('modal')
end)
return gameView

View File

@ -252,6 +252,7 @@ local function showMainMenu()
end)
callModules('mainMenu')
callModules('modal')
end -- showMainMenu
ui.registerHandler('mainMenu',function(delta)