The tabs object will only draw tabbuttons that are within its button area

This commit is contained in:
Kenny Shields 2014-01-20 17:22:40 -05:00
parent 63e6f2fdb7
commit 476a11b1e9

View File

@ -169,8 +169,11 @@ function newobject:draw()
end end
for k, v in ipairs(internals) do for k, v in ipairs(internals) do
local col = loveframes.util.BoundingBox(x + self.buttonareax, v.x, self.y, v.y, self.buttonareawidth, v.width, tabheight, v.height)
if col or v.type == "scrollbutton" then
v:draw() v:draw()
end end
end
love.graphics.setStencil() love.graphics.setStencil()