From 0f97a9712bbbb297c83758ecd48e5e51532a426f Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 5 Sep 2017 00:34:42 +0200 Subject: Provide icons for map selector to draw --- config/menus/host.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') 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") -- cgit v1.1