tabs:AddTab now sets object visibility properly

This commit is contained in:
Kenny Shields 2013-11-25 23:49:21 -05:00
parent 2e71e96cf5
commit 9aaf07f66f

View File

@ -305,6 +305,10 @@ function newobject:AddTab(name, object, tip, image, onopened, onclosed)
object.staticx = 0
object.staticy = 0
if tabnumber ~= 1 then
object.visible = false
end
local tab = loveframes.objects["tabbutton"]:new(self, name, tabnumber, tip, image, onopened, onclosed)
table.insert(self.children, object)