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,7 +169,10 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
for k, v in ipairs(internals) do
|
for k, v in ipairs(internals) do
|
||||||
v:draw()
|
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
|
end
|
||||||
|
|
||||||
love.graphics.setStencil()
|
love.graphics.setStencil()
|
||||||
|
Loading…
Reference in New Issue
Block a user