mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Update for love 0.10.1
This commit is contained in:
parent
ebcfee9be0
commit
9f8e3aaab8
@ -155,13 +155,13 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
for k, v in ipairs(children) do
|
for k, v in ipairs(children) do
|
||||||
v:draw()
|
v:draw()
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
for k, v in ipairs(self.children) do
|
for k, v in ipairs(self.children) do
|
||||||
local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, width, v.width, height, v.height)
|
local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, width, v.width, height, v.height)
|
||||||
@ -142,7 +142,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
for k, v in ipairs(self.internals) do
|
for k, v in ipairs(self.internals) do
|
||||||
v:draw()
|
v:draw()
|
||||||
|
@ -109,7 +109,7 @@ function newobject:draw()
|
|||||||
self:SetDrawOrder()
|
self:SetDrawOrder()
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
if draw then
|
if draw then
|
||||||
draw(self)
|
draw(self)
|
||||||
@ -117,7 +117,7 @@ function newobject:draw()
|
|||||||
drawfunc(self)
|
drawfunc(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
for k, v in ipairs(children) do
|
for k, v in ipairs(children) do
|
||||||
local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, self.width, v.width, self.height, v.height)
|
local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, self.width, v.width, self.height, v.height)
|
||||||
@ -183,7 +183,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
if not draw then
|
if not draw then
|
||||||
drawoverfunc(self)
|
drawoverfunc(self)
|
||||||
|
@ -164,7 +164,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
for k, v in ipairs(children) do
|
for k, v in ipairs(children) do
|
||||||
local col = loveframes.util.BoundingBox(x, v.x, y, v.y, width, v.width, height, v.height)
|
local col = loveframes.util.BoundingBox(x, v.x, y, v.y, width, v.width, height, v.height)
|
||||||
@ -173,7 +173,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
for k, v in ipairs(internals) do
|
for k, v in ipairs(internals) do
|
||||||
v:draw()
|
v:draw()
|
||||||
|
@ -165,7 +165,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
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)
|
local col = loveframes.util.BoundingBox(x + self.buttonareax, v.x, self.y, v.y, self.buttonareawidth, v.width, tabheight, v.height)
|
||||||
@ -174,7 +174,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
if #self.children > 0 then
|
if #self.children > 0 then
|
||||||
self.children[self.tab]:draw()
|
self.children[self.tab]:draw()
|
||||||
|
@ -303,7 +303,7 @@ function newobject:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
if draw then
|
if draw then
|
||||||
draw(self)
|
draw(self)
|
||||||
@ -311,7 +311,7 @@ function newobject:draw()
|
|||||||
drawfunc(self)
|
drawfunc(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
for k, v in ipairs(internals) do
|
for k, v in ipairs(internals) do
|
||||||
v:draw()
|
v:draw()
|
||||||
|
@ -194,7 +194,7 @@ function newobject:draw()
|
|||||||
self:SetDrawOrder()
|
self:SetDrawOrder()
|
||||||
|
|
||||||
love.graphics.stencil(stencilfunc)
|
love.graphics.stencil(stencilfunc)
|
||||||
love.graphics.setStencilTest(true)
|
love.graphics.setStencilTest("greater", 0)
|
||||||
|
|
||||||
if draw then
|
if draw then
|
||||||
draw(self)
|
draw(self)
|
||||||
@ -206,7 +206,7 @@ function newobject:draw()
|
|||||||
v:draw()
|
v:draw()
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setStencilTest(false)
|
love.graphics.setStencilTest()
|
||||||
|
|
||||||
for k, v in ipairs(self.internals) do
|
for k, v in ipairs(self.internals) do
|
||||||
v:draw()
|
v:draw()
|
||||||
|
Loading…
Reference in New Issue
Block a user