scenes/mainmenu: make description a part of the scene
This commit is contained in:
parent
f19edf9b72
commit
4a5f613274
|
@ -24,6 +24,7 @@ function MainMenu:new()
|
|||
self.rightborder = game.gui.newBorder(1, 64+24, 424)
|
||||
self.textbox = game.gui.newTextBox("assets/sprites/gui/textbox/bluetextbox.png", 240, 42+16)
|
||||
self:register()
|
||||
self.description = "nothing to see here"
|
||||
end
|
||||
|
||||
function MainMenu:createBackground( filename, emblem_filename )
|
||||
|
@ -80,7 +81,7 @@ function MainMenu:draw()
|
|||
self.assets.fonts["small"]:set()
|
||||
self.assets.fonts["small"]:setLineHeight(1.2)
|
||||
love.graphics.draw(self.textbox, 212-120, 190-16)
|
||||
love.graphics.printf(self.debugmenu.description, 212-120+8, 190-8, 240-16, "left")
|
||||
love.graphics.printf(self.description, 212-120+8, 190-8, 240-16, "left")
|
||||
end
|
||||
|
||||
return MainMenu
|
||||
|
|
Loading…
Reference in New Issue