summaryrefslogtreecommitdiffhomepage
path: root/config/menus/select.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-07 21:05:41 +0200
committerAki <nthirtyone@gmail.com>2017-04-07 21:05:41 +0200
commit1c3040de93f9d5a164ccb06194eacc28eead0234 (patch)
tree3d953fb9b7813a810613cd102e444033a9ddbf1d /config/menus/select.lua
parent612a14474c9d3c28b6512aef4845e52579d7d9c9 (diff)
downloadroflnauts-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/select.lua')
-rw-r--r--config/menus/select.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/menus/select.lua b/config/menus/select.lua
index e759f40..804b4eb 100644
--- a/config/menus/select.lua
+++ b/config/menus/select.lua
@@ -10,15 +10,18 @@ local bx = width/2-29
local naut_selector = selector:new(menu)
local start_button = button:new(menu)
+require "iconsList"
+local nautsIcons, nautsList = getNautsIconsList()
+
return {
naut_selector
:setPosition(width/2,60)
:setMargin(8)
:setSize(32, 32)
- :set("list", require "nautslist")
+ :set("list", nautsList)
:set("global", false)
:set("icons_i", love.graphics.newImage("assets/portraits.png"))
- :set("icons_q", require "nautsicons")
+ :set("icons_q", nautsIcons)
:init()
,
start_button