mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:19:02 -06:00
Set piece opacity fixes
This commit is contained in:
parent
e20eb048c8
commit
ea8d008370
@ -545,8 +545,7 @@ function GameMode:drawNextQueue(ruleset)
|
||||
end
|
||||
end
|
||||
if self.hold_queue ~= nil and self.enable_hold then
|
||||
local hold_color = self.held and 0.6 or 1
|
||||
self:setHoldOpacity(1, hold_color)
|
||||
self:setHoldOpacity()
|
||||
drawPiece(
|
||||
self.hold_queue.shape,
|
||||
self.hold_queue.skin,
|
||||
@ -557,15 +556,12 @@ function GameMode:drawNextQueue(ruleset)
|
||||
return false
|
||||
end
|
||||
|
||||
function GameMode:setNextOpacity(i, j)
|
||||
i = i ~= nil and i or 1
|
||||
j = j ~= nil and j or 1
|
||||
love.graphics.setColor(j, j, j, i)
|
||||
function GameMode:setNextOpacity(i)
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
end
|
||||
function GameMode:setHoldOpacity(i, j)
|
||||
i = i ~= nil and i or 1
|
||||
j = j ~= nil and j or 1
|
||||
love.graphics.setColor(j, j, j, i)
|
||||
|
||||
function GameMode:setHoldOpacity()
|
||||
love.graphics.setColor(1, 1, 1, self.held and 0.6 or 1)
|
||||
end
|
||||
|
||||
function GameMode:drawScoringInfo()
|
||||
|
Loading…
Reference in New Issue
Block a user