mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
The tabs object will only update its active tab
This commit is contained in:
parent
8fddb8635a
commit
63e6f2fdb7
@ -103,9 +103,9 @@ function newobject:update(dt)
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in ipairs(children) do
|
||||
v:update(dt)
|
||||
v:SetPos(padding, tabheight + padding)
|
||||
if #self.children > 0 then
|
||||
self.children[self.tab]:update(dt)
|
||||
self.children[self.tab]:SetPos(padding, tabheight + padding)
|
||||
end
|
||||
|
||||
if update then
|
||||
|
Loading…
Reference in New Issue
Block a user