* speed up the filterwheel and songwheel transitions to normal speed

This commit is contained in:
FajsiEx 2021-08-12 17:25:24 +02:00
parent 900e368a91
commit 1c68d2a07d
2 changed files with 4 additions and 4 deletions

View File

@ -227,13 +227,13 @@ function tickTransitions(deltaTime)
-- ENTRY TRANSITION
if transitionEnterReverse then
if transitionEnterScale > 0 then
transitionEnterScale = transitionEnterScale - deltaTime / 15 -- transition should last for that time in seconds
transitionEnterScale = transitionEnterScale - deltaTime / 0.5 -- transition should last for that time in seconds
else
transitionEnterScale = 0
end
else
if transitionEnterScale < 1 then
transitionEnterScale = transitionEnterScale + deltaTime / 15 -- transition should last for that time in seconds
transitionEnterScale = transitionEnterScale + deltaTime / 0.5 -- transition should last for that time in seconds
else
transitionEnterScale = 1
end

View File

@ -523,13 +523,13 @@ function tickTransitions(deltaTime)
-- Leave transition
if (transitionLeaveReverse) then
if transitionLeaveScale > 0 then
transitionLeaveScale = transitionLeaveScale - deltaTime / 15 -- transition should last for that time in seconds
transitionLeaveScale = transitionLeaveScale - deltaTime / 0.5 -- transition should last for that time in seconds
else
transitionLeaveScale = 0
end
else
if transitionLeaveScale < 1 then
transitionLeaveScale = transitionLeaveScale + deltaTime / 15 -- transition should last for that time in seconds
transitionLeaveScale = transitionLeaveScale + deltaTime / 0.5 -- transition should last for that time in seconds
else
transitionLeaveScale = 1
end