From 40dbc7134bae5cff48c2262d92721a3dd5394f84 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Tue, 7 Feb 2012 23:10:29 +0100 Subject: Initial commit --- label.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 label.lua (limited to 'label.lua') 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 + -- cgit v1.2.3-54-g00ecf