summaryrefslogtreecommitdiffhomepage
path: root/config/menus
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-22 18:01:09 +0200
committerAki <nthirtyone@gmail.com>2017-09-22 18:01:09 +0200
commit118c64c62bb19239a28da08f928c2f8e74655f08 (patch)
tree142ee7dd3f4bc7e797e3fd72f7364530b68f674f /config/menus
parent1a4db161e7be614e002c4f8edccbf3acf1edc6aa (diff)
downloadroflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.zip
roflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.tar.gz
roflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.tar.bz2
Split map icons, menu now uses them
Diffstat (limited to 'config/menus')
-rw-r--r--config/menus/host.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua
index c8ef4d8..571fc50 100644
--- a/config/menus/host.lua
+++ b/config/menus/host.lua
@@ -21,7 +21,7 @@ do
local i, name = map.portrait, map.name
map.filename = path
if i then
- table.insert(icons, love.graphics.newQuad((i-1)*76, 0, 76, 37, 608, 37))
+ table.insert(icons, love.graphics.newImage(map.portrait))
table.insert(maps, map)
end
end
@@ -35,8 +35,7 @@ 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"))
+ :set("icons", icons)
:set("getText", function (self)
return self:getSelected().name
end)