aboutsummaryrefslogtreecommitdiffstats
path: root/label.lua
blob: 34d32b4390d4a8f09b60a7e194dded8fac240401 (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