Removed hardcoded screen width in VBox class.
This commit is contained in:
@@ -37,7 +37,7 @@ function MainMenu:_init(name, index)
|
||||
self.title_font = Font('fonts/BBrick.ttf', 35)
|
||||
|
||||
-- Create UI elements.
|
||||
self.btns = VBox(15, 5)
|
||||
self.btns = VBox(15, 5, love.graphics.getWidth())
|
||||
self.btns:add_label('LoveDOS', self.title_font, Color(215, 0, 0), true)
|
||||
self.btns:add_text_button('New Game', self.btn_font)
|
||||
self.btns:add_text_button('Load Game', self.btn_font)
|
||||
|
||||
Reference in New Issue
Block a user