The tabs object will only update its active tab

This commit is contained in:
Kenny Shields 2014-01-20 17:21:21 -05:00
parent 8fddb8635a
commit 63e6f2fdb7

View File

@ -103,9 +103,9 @@ function newobject:update(dt)
end end
end end
for k, v in ipairs(children) do if #self.children > 0 then
v:update(dt) self.children[self.tab]:update(dt)
v:SetPos(padding, tabheight + padding) self.children[self.tab]:SetPos(padding, tabheight + padding)
end end
if update then if update then