summaryrefslogtreecommitdiffhomepage
path: root/config/menus/host.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-05 04:01:56 +0200
committerAki <nthirtyone@gmail.com>2017-09-05 04:01:56 +0200
commit3cb43876bc41e3074b7235b484f6b2f7622b5eda (patch)
treeb444c4625c066e00f3e6b884729689f6b7729a55 /config/menus/host.lua
parent84f6ec47be56d397fe140b5707b76078917fe8fb (diff)
downloadroflnauts-3cb43876bc41e3074b7235b484f6b2f7622b5eda.zip
roflnauts-3cb43876bc41e3074b7235b484f6b2f7622b5eda.tar.gz
roflnauts-3cb43876bc41e3074b7235b484f6b2f7622b5eda.tar.bz2
Display map name instead of table ref
Diffstat (limited to 'config/menus/host.lua')
-rw-r--r--config/menus/host.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua
index 5595f8b..6861d91 100644
--- a/config/menus/host.lua
+++ b/config/menus/host.lua
@@ -37,6 +37,9 @@ return {
:set("shape", Selector.SHAPE_PANORAMA)
:set("icons_quads", icons)
:set("icons_atlas", love.graphics.newImage("assets/maps.png"))
+ :set("getText", function (self)
+ return self:getSelected().name
+ end)
,
Button(menu)
:setText("Next")