Initial commit

This commit is contained in:
Matthias Richter 2012-02-07 23:10:29 +01:00
commit 40dbc7134b
11 changed files with 542 additions and 0 deletions

9
label.lua Normal file
View file

@ -0,0 +1,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