LOVE2D - Dynamic ListBox lib
Posted: Tue Mar 07, 2017 10:47 am
Hello guys, I've come to share for those who need to use a dynamic ListBox (lib) for LOVE 0.10+. You can add a text, show the IDs, hide, customize the number of zeros on the left, add a data within the item, import, enumerate, export, sort, touch-screen, double-click, customize, change, count, reposition, resize, rounded, colors, get, set, is ...
https://github.com/darkmetalic/ListBox
https://github.com/darkmetalic/ListBox
Code: Select all
function love.load()
font = love.graphics.newFont(15)
list = require "listbox"
local tlist={
x=200, y=100,
font=font,ismouse=true,
rounded=true,
w=200,h=300,showindex=true}
list:newprop(tlist)
list:additem("MySite","www.MySite.com")
list:additem("MyNumber",123456)
end
function love.keypressed(key)
list:key(key,true)
end
function love.wheelmoved(x,y)
list:mousew(x,y)
end
function love.update(dt)
list:update(dt)
end
function love.draw()
list:draw()
end