summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/menus/select.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/config/menus/select.lua b/config/menus/select.lua
index a3c379b..c4a9595 100644
--- a/config/menus/select.lua
+++ b/config/menus/select.lua
@@ -28,19 +28,17 @@ do
end
group = Group(menu)
- local
- function add (element)
- table.insert(group.children, element)
- return element
- end
for i,_ in pairs(Controller.getSets()) do
- add(Selector(nauts, group, menu))
- :setPosition(10+48*(i-1), 10)
+ group:addChild(Selector(nauts, group, menu))
:set("icons_atlas", atlas)
:set("icons_quads", icons)
end
+ group:set("margin", 16)
+ local gw, gh = group:getSize()
+ group:setPosition((width - gw)/2, 10)
+
function get ()
local selection = group:callEach("getSelected")
for i,naut in ipairs(selection) do