mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 23:01:53 +00:00
Pie plate selector and tweening patch
This commit is contained in:
@@ -10,9 +10,15 @@ type LinearFunction = (a: number, b: number, t: number) -> number
|
||||
export type EasingStyles = {
|
||||
Linear: LinearFunction,
|
||||
InOutBack: EaseFunction,
|
||||
OutBounce: EaseFunction
|
||||
OutBounce: EaseFunction,
|
||||
InQuad: EaseFunction
|
||||
}
|
||||
|
||||
local function flip(x: number): number
|
||||
return x*0-x
|
||||
|
||||
end
|
||||
|
||||
local Ease = {} :: EasingStyles
|
||||
--Google straight up gives wrong/bad math
|
||||
|
||||
@@ -32,4 +38,8 @@ function Ease.OutBounce(n)
|
||||
n<0.909091 and (.9375*(1.*d1-2.4*n*n1)/d1)) or (.984375*(1.*d1-2.66667*n*n1))/d1
|
||||
end
|
||||
|
||||
function Ease.InQuad(n)
|
||||
return n*n
|
||||
end
|
||||
|
||||
return Ease
|
||||
@@ -42,10 +42,12 @@ function Tween:Start(PostInstance, PostProperties, PostTweenSettings)
|
||||
|
||||
if PostProperties then
|
||||
if self.PreProperties then
|
||||
for tween_prop, tween_value in PostProperties do
|
||||
Props[tween_prop] = tween_value
|
||||
if Props then
|
||||
print("Tween library: Combining PostProperties and PreProperties together", debug.traceback())
|
||||
for tween_prop, tween_value in PostProperties do
|
||||
Props[tween_prop] = tween_value
|
||||
end
|
||||
end
|
||||
print("Tween library: Combining PostProperties and PreProperties together", debug.traceback())
|
||||
else
|
||||
Props = PostProperties
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user