LOVE2D - Dynamic ListBox lib

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
darkmetalic
Prole
Posts: 17
Joined: Tue Feb 07, 2017 4:09 pm
Contact:

LOVE2D - Dynamic ListBox lib

Post by darkmetalic »

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

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
Attachments
ListBoxDemo.love
(90.06 KiB) Downloaded 144 times
listbox.lua
(35.58 KiB) Downloaded 121 times
Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests