diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-05 00:34:42 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-05 00:34:42 +0200 |
commit | 0f97a9712bbbb297c83758ecd48e5e51532a426f (patch) | |
tree | 6af359a3742d81b41a94db378a85fb8eb9f62a6b /config/menus | |
parent | c0589d55340b948f107c7317f0f216e6ef408792 (diff) | |
download | roflnauts-0f97a9712bbbb297c83758ecd48e5e51532a426f.zip roflnauts-0f97a9712bbbb297c83758ecd48e5e51532a426f.tar.gz roflnauts-0f97a9712bbbb297c83758ecd48e5e51532a426f.tar.bz2 |
Provide icons for map selector to draw
Diffstat (limited to 'config/menus')
-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") |