renamed texture for consistency
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user