diff options
author | Aki <nthirtyone@gmail.com> | 2017-04-07 21:05:41 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-04-07 21:05:41 +0200 |
commit | 1c3040de93f9d5a164ccb06194eacc28eead0234 (patch) | |
tree | 3d953fb9b7813a810613cd102e444033a9ddbf1d /config/menus/host.lua | |
parent | 612a14474c9d3c28b6512aef4845e52579d7d9c9 (diff) | |
download | roflnauts-1c3040de93f9d5a164ccb06194eacc28eead0234.zip roflnauts-1c3040de93f9d5a164ccb06194eacc28eead0234.tar.gz roflnauts-1c3040de93f9d5a164ccb06194eacc28eead0234.tar.bz2 |
Maps and nauts list moved to config
Implemented functions to create icons list for them
Changed so game uses these functions now
Diffstat (limited to 'config/menus/host.lua')
-rw-r--r-- | config/menus/host.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua index 8a4887e..b318a5b 100644 --- a/config/menus/host.lua +++ b/config/menus/host.lua @@ -8,6 +8,9 @@ local bx = width/2-29 local map_selector = selector:new(menu) +require "iconsList" +local icons, maps = getMapsIconsList() + return { map_selector :setPosition(width/2, 40) @@ -15,9 +18,9 @@ return { :setMargin(0) :set("global", true) :set("first", true) - :set("list", require "maplist") + :set("list", maps) :set("icons_i", love.graphics.newImage("assets/maps.png")) - :set("icons_q", require "mapicons") + :set("icons_q", icons) :set("shape", "panorama") :init() , |