suit/label.lua
Matthias Richter 40dbc7134b Initial commit
2012-02-07 23:10:29 +01:00

9 lines
272 B
Lua

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