From cb057f19ac818543dacc9ca9a49901319243d79d Mon Sep 17 00:00:00 2001 From: zhoukk Date: Fri, 4 Sep 2015 22:38:54 +0800 Subject: [PATCH] sprite.label add space_w, space_h, auto_size, edge paramter --- ejoy2d/sprite.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ejoy2d/sprite.lua b/ejoy2d/sprite.lua index 3d7787ef..1ec0504f 100644 --- a/ejoy2d/sprite.lua +++ b/ejoy2d/sprite.lua @@ -130,7 +130,7 @@ end function sprite.label(tbl) local size = tbl.size or tbl.height - 2 - local l = (c.label(tbl.width, tbl.height, size, tbl.color, tbl.align)) + local l = (c.label(tbl.width, tbl.height, size, tbl.color, tbl.align, tbl.space_w or 0, tbl.space_h or 0, tbl.auto_size or 0, tbl.noedge and 0 or 1)) if l then l = debug.setmetatable(l, sprite_meta) if tbl.text then