fix(mainmenu): draw the options menus over the main menu.

This commit is contained in:
Kazhnuz 2019-06-17 16:39:11 +02:00
parent af7cc04da9
commit c7d530cf35
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- **levels:** use the right drawing method for debris' texture
- **mainmenu:** draw the options menus over the main menu and not under.
### Changed
- **levels:** assets are now loaded from an asset file

View File

@ -16,6 +16,8 @@ function MenuObject:new(scene, name)
self.isActive = false
self.isVisible = false
self.textbox = game.gui.newTextBox("assets/sprites/gui/textbox/bluebox.png", width, height)
self.depth = -10
end
function MenuObject:draw()
@ -73,7 +75,7 @@ function menu.Pigs:new(scene)
end
function menu.Options:new(scene)
menu.Options.super.new(self, scene, "options")
menu.Options.super.new(self, scene, "options", -1)
widgets.Save(self)
widgets.Load(self)
widgets.Menu(self,"Back", "mainmenu")