improve Prompt and use it to ask for level and file name when exporting

This commit is contained in:
binarycat
2022-03-05 14:29:01 -05:00
parent 8cfc6a9d18
commit edd064c2fd
4 changed files with 31 additions and 4 deletions

View File

@@ -98,7 +98,13 @@ function love.update(dt)
end
if Prompt.active_prompt then
Prompt.active_prompt:update()
-- try to stop the keypress that closed the menu from spilling into the rest of the game
Keybind:CheckPressed(Keybind.menu.pause)
if Prompt.active_prompt.closing then
Prompt.active_prompt = nil
else
Prompt.active_prompt:update()
end
return
end