function draw_links(pane)
local x = pane.left
for _,label in ipairs(Edge_list) do
if Text_cache[label] == nil then
Text_cache[label] = App.newText(love.graphics.getFont(), label)
end
if Cache[pane.id].links[label] then
draw_link(label, x, pane.bottom)
end
x = x + App.width(Text_cache[label]) + 10 + 10
end
for link,_ in pairs(Cache[pane.id].links) do
if not Opposite[link] then
if Text_cache[link] == nil then
Text_cache[link] = App.newText(love.graphics.getFont(), link)
end
draw_link(link, x, pane.bottom)
x = x + App.width(Text_cache[link]) + 10 + 10
end
end
pane.bottom = pane.bottom + 5+Line_height+5
end