mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
The tabs object will only draw tabbuttons that are within its button area
This commit is contained in:
parent
63e6f2fdb7
commit
476a11b1e9
@ -169,8 +169,11 @@ function newobject:draw()
|
||||
end
|
||||
|
||||
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()
|
||||
end
|
||||
end
|
||||
|
||||
love.graphics.setStencil()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user