This commit is contained in:
Ryan Ward 2022-11-06 01:01:31 -04:00
parent e364f6d449
commit 66a7f8e033
3 changed files with 9 additions and 7 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "multi"]
path = multi
url = https://github.com/rayaman/multi

View File

@ -10,7 +10,7 @@ local cursor_hand = love.mouse.getSystemCursor("hand")
local clips = {}
local max, min, abs, rad, floor, ceil = math.max, math.min, math.abs, math.rad, math.floor,math.ceil
local frame, image, text, box, video = 0, 1, 2, 4, 8
local has_moonshine, moonshine = pcall(require,"moonshine")
local global_drag
gui.__index = gui
@ -729,8 +729,10 @@ local draw_handler = function(child)
drawtypes[band(type,image)](child,x,y,w,h)
drawtypes[band(type,text)](child,x,y,w,h)
if child.__variables.clip[1] then
love.graphics.setScissor() -- Remove the scissor
end
end
drawer:newLoop(function()
local children = gui:getAllChildren()
for i=1,#children do
@ -739,10 +741,6 @@ drawer:newLoop(function()
child.effect(function()
draw_handler(child)
end)
elseif child.chain then
child.chain.draw(function()
draw_handler(child)
end)
else
draw_handler(child)
end

1
multi Submodule

@ -0,0 +1 @@
Subproject commit a5b59ee601cdf73200f17ae32e64c37ff8b75509