renamed texture for consistency

This commit is contained in:
2024-12-08 12:40:26 -06:00
parent 4bc5039ea6
commit 4e88ded961

View File

@@ -10,7 +10,7 @@ function Menu.new(core, input, bgPath)
self.core = core
self.input = input
if bgPath then
self.bgPath = love.graphics.newImage(bgPath)
self.bgTexture = love.graphics.newImage(bgPath)
end
-- Initialize screens and stack navigation
@@ -28,8 +28,8 @@ function Menu:update(dt)
end
function Menu:draw()
if self.bgPath then
love.graphics.draw(self.bgPath, 0, 0, 0, 1, 1, 0, 0, 0, 0)
if self.bgTexture then
love.graphics.draw(self.bgTexture, 0, 0, 0, 1, 1, 0, 0, 0, 0)
end
local screen = self:getActiveScreen()
if screen then