Skip to content

Commit

Permalink
dgsEasingFunctionExists
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp authored Jun 4, 2018
1 parent 1772e7f commit cce6496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions animation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function dgsAlphaTo(gui,toalpha,movetype,easing,torv,tab)
assert(toalpha,"Bad argument @dgsAlphaTo at argument 2, expect number got "..type(toalpha))
assert(torv,"Bad argument @dgsAlphaTo at argument 5, expect number got "..type(torv))
local easing = easing or "Linear"
assert(easingFunctionExists(easing),"Bad argument @dgsAlphaTo at argument 4, easing function doesn't exist ("..tostring(easing)..")")
assert(dgsEasingFunctionExists(easing),"Bad argument @dgsAlphaTo at argument 4, easing function doesn't exist ("..tostring(easing)..")")
local toalpha = (toalpha > 1 and 1) or (toalpha < 0 and 0) or toalpha
dgsSetData(gui,"calpha",{[-1]=tab,[0]=getTickCount(),dgsElementData[gui].alpha-toalpha,toalpha,movetype,easing,torv})
if not alphaGUIList[gui] then
Expand Down Expand Up @@ -317,4 +317,4 @@ function getEasingValue2(percent,easing,settings)
if SelfEasing[easing] then
return SelfEasing[easing](percent,settings)
end
end
end

0 comments on commit cce6496

Please sign in to comment.