Initial commit
This commit is contained in:
commit
40dbc7134b
11 changed files with 542 additions and 0 deletions
9
label.lua
Normal file
9
label.lua
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue