diff options
Diffstat (limited to 'config/menus/host.lua')
-rw-r--r-- | config/menus/host.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua index fff683c..a180736 100644 --- a/config/menus/host.lua +++ b/config/menus/host.lua @@ -1,4 +1,4 @@ -local menu = ... +local menu, background = ... local Button = require "not.Button" local Selector = require "not.Selector" @@ -11,7 +11,12 @@ local map_Selector = Selector(menu) require "iconsList" local icons, maps = getMapsIconsList() +if background == nil or not background:is(require "not.MenuBackground") then + background = require "not.MenuBackground"(menu) +end + return { + background, map_Selector :setPosition(width/2, 40) :setSize(80, 42) @@ -42,4 +47,4 @@ return { self.parent:open("main") end) , -}
\ No newline at end of file +} |