Renamed pause.lua to ui.lua; adjusted accordingly.

This commit is contained in:
lustlion
2022-01-21 15:56:25 +01:00
parent 9e43b02620
commit f4b44dc7bc
10 changed files with 121 additions and 75 deletions

View File

@@ -66,8 +66,6 @@ function love.update(dt)
fps_count = fps_count + 1
current_dt = dt
--MenuStep
MenuStep(menuPage)
--keypressed
if Keybind:HasPressed(Keybind.menu.pause) then
if do_pause then
@@ -75,10 +73,12 @@ function love.update(dt)
else
menuPage = "pauseMenu"
MenuInit(menuPage)
do_pause = true
end
end
--MenuStep
if menuPage ~= nil then MenuStep(menuPage) end
if Keybind:HasPressed(Keybind.debug.debug) then
if debug then
debug = false
@@ -137,5 +137,8 @@ function love.draw()
else
GameDraw()
end
if menuPage ~= nil then MenuDraw(menuPage) end
love.graphics.print(arrow,10,40)
end