summaryrefslogtreecommitdiffhomepage
path: root/config/menus/select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/menus/select.lua')
-rw-r--r--config/menus/select.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/menus/select.lua b/config/menus/select.lua
index 037b798..23f9374 100644
--- a/config/menus/select.lua
+++ b/config/menus/select.lua
@@ -1,4 +1,4 @@
-local menu = ...
+local menu, background = ...
local Button = require "not.Button"
local Selector = require "not.Selector"
@@ -13,7 +13,12 @@ local start_Button = Button(menu)
require "iconsList"
local nautsIcons, nautsList = getNautsIconsList()
+if background == nil or not background:is(require "not.MenuBackground") then
+ background = require "not.MenuBackground"(menu)
+end
+
return {
+ background,
naut_Selector
:setPosition(width/2,60)
:setMargin(8)