aboutsummaryrefslogtreecommitdiffstats
path: root/label.lua
blob: 76f3c9267c2db26ddf42ac0815172c6904bad90a (plain)
1
2
3
4
5
6
7
8
9
local core = require((...):match("^(.+)%.[^%.]+") .. '.core')

return function(text, x,y,w,h,align, draw)
	local id = core.generateID()
	w, h, align = w or 0, h or 0, align or 'left'
	core.registerDraw(id, draw or core.style.Label,  text,x,y,w,h,align)
	return false
end