Renamed pause.lua to ui.lua; adjusted accordingly.
This commit is contained in:
9
main.lua
9
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user