diff options
author | Matthias Richter <vrld@vrld.org> | 2012-02-07 23:10:29 +0100 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2012-02-07 23:10:29 +0100 |
commit | 40dbc7134bae5cff48c2262d92721a3dd5394f84 (patch) | |
tree | de6097abf421b873aa6052928c56fbd578bafa01 /label.lua | |
download | Quickie-40dbc7134bae5cff48c2262d92721a3dd5394f84.tar.gz Quickie-40dbc7134bae5cff48c2262d92721a3dd5394f84.tar.bz2 Quickie-40dbc7134bae5cff48c2262d92721a3dd5394f84.tar.xz Quickie-40dbc7134bae5cff48c2262d92721a3dd5394f84.zip |
Initial commit
Diffstat (limited to 'label.lua')
-rw-r--r-- | label.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/label.lua b/label.lua new file mode 100644 index 0000000..76f3c92 --- /dev/null +++ b/label.lua @@ -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 + |