Content deleted Content added
BrandonXLF (talk | contribs) spelling |
BrandonXLF (talk | contribs) No edit summary |
||
Line 11:
-- Generate the HTML to display a service
local function displayService(service, dest, desc, dir)
if not service then return '' end
return '<div class="service">' ..
'<div class="' .. (dir ~= 'left' and 'hidden' or '') .. '">←</div>' ..
'<div>' .. service .. (dest and ' toward ' .. dest) .. (desc and ' ' .. desc) .. '</div>' ..
(dir == 'right' and '<div>→</div>' or '') ..
'</div>'
Line 27:
-- Add extra (numbered) services
if floorPart.extraservice then
floorPart.extradest = floorPart.extradest or {}
floorPart.extradesc = floorPart.extradesc or {}
for i = 1, floorPart.extraservice.max do
out = out .. displayService(floorPart.extraservice[i], floorPart.extradest[i], floorPart.extradesc[i], floorPart.dir)
end
end
|