From 959fd99ba493050666bfb2172f5a58dc67346ceb Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 3 Sep 2021 11:12:25 +0200 Subject: [PATCH] feat(drawable): apply opacity. --- sonic-radiance.love/birb/modules/gui/elements/drawable.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonic-radiance.love/birb/modules/gui/elements/drawable.lua b/sonic-radiance.love/birb/modules/gui/elements/drawable.lua index 7027c52..e2ac258 100644 --- a/sonic-radiance.love/birb/modules/gui/elements/drawable.lua +++ b/sonic-radiance.love/birb/modules/gui/elements/drawable.lua @@ -23,7 +23,9 @@ function DrawableElement:parseOrigin(origin, size) end function DrawableElement:draw() + love.graphics.setColor(1, 1, 1, self.opacity) love.graphics.draw(self.drawable, self.x,self.y,self.r,self.sx,self.sy,self.ox,self.oy) + love.graphics.setColor(1, 1, 1, 1) end return DrawableElement \ No newline at end of file