mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Split up alpha number
This commit is contained in:
@@ -77,7 +77,7 @@ end
|
||||
function control_type.button:draw(forceLight)
|
||||
love.graphics.setLineWidth(4)
|
||||
if self.shape=='circle' then
|
||||
love.graphics.setColor(0,0,0,self.alpha*0.5)
|
||||
love.graphics.setColor(0,0,0,self.alpha)
|
||||
love.graphics.circle('fill',self.x,self.y,self.r-4)
|
||||
|
||||
love.graphics.setColor(1,1,1,self.pressed and .5 or .05)
|
||||
@@ -86,7 +86,7 @@ function control_type.button:draw(forceLight)
|
||||
love.graphics.setColor(1,1,1)
|
||||
love.graphics.circle('line',self.x,self.y,self.r-2)
|
||||
elseif self.shape=='square' then
|
||||
love.graphics.setColor(0,0,0,self.alpha*0.5)
|
||||
love.graphics.setColor(0,0,0,self.alpha)
|
||||
love.graphics.rectangle('fill',self.x-self.r-4,self.y-self.r-4,self.r*2+8,self.r*2+8)
|
||||
|
||||
love.graphics.setColor(1,1,1,self.pressed and .5 or .05)
|
||||
|
||||
Reference in New Issue
Block a user