improve Prompt and use it to ask for level and file name when exporting
This commit is contained in:
8
main.lua
8
main.lua
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user