예제 #1
0
        protected override void PopIn()
        {
            if (delayedHide != null && !delayedHide.Completed)
            {
                backgroundBox.FadeColour(targetColour, 300, Easing.OutCubic);

                if (targetText != latestText)
                {
                    textFlow.MoveToY(position == SplashPosition.Bottom ? 1 : -1)
                    .Then()
                    .MoveToY(0, 200, Easing.OutCubic);
                }
            }
            else
            {
                backgroundBox.Colour = targetColour;
            }

            textFlow.Text = latestText = targetText;

            Child.MoveToY(0, 400, Easing.OutCubic);

            delayedHide = Scheduler.AddDelayed(Hide, 4400);
        }