示例#1
0
 /// <summary>
 /// Returns a UDim2 interpolated between this, and the goal.
 /// </summary>
 /// <param name="goal"></param>
 /// <param name="alpha"></param>
 /// <returns></returns>
 public UDim2 Lerp(UDim2 goal, float alpha)
 {
     return(new UDim2(
                X.Lerp(goal.X, alpha),
                Y.Lerp(goal.Y, alpha)
                ));
 }
示例#2
0
        /// <summary>
        /// Smoothly moves a GUI to a new UDim2 position in the specified time using the specified EasingDirection and EasingStyle.
        /// </summary>
        /// <returns></returns>
        public bool TweenPosition(UDim2 endPos, EasingDirection easingDirection = EasingDirection.Out, EasingStyle easingStyle = EasingStyle.Quad, float time = 1f, bool oride = false)
        {
            if (oride && _beingTweened)
            {
                _interrupt = true;
            }

            // TODO: add an actual tween in render loop

            return(false);
        }
示例#3
0
 public TextLabel(UDim2 pos, UDim2 size, string text)
 {
     Position = pos;
     Size     = size;
     Text     = text;
 }