diff options
-rw-r--r-- | config/menus/host.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua index 8fca328..8054942 100644 --- a/config/menus/host.lua +++ b/config/menus/host.lua @@ -20,7 +20,7 @@ do local map = love.filesystem.load(path)() local i, name = map.portrait, map.name if i then - icons[name] = love.graphics.newQuad((i-1)*76, 0, 76, 37, 532, 37) + table.insert(icons, love.graphics.newQuad((i-1)*76, 0, 76, 37, 532, 37)) table.insert(maps, map) end end @@ -34,6 +34,8 @@ return { mapSelector :setPosition(width/2-40, 40) :set("shape", Selector.SHAPE_PANORAMA) + :set("icons_quads", icons) + :set("icons_atlas", love.graphics.newImage("assets/maps.png")) , Button(menu) :setText("Next") |