Exemple #1
0
        protected override void OnInputEnabled()
        {
            Co.RepeatAscending(0.5f, 4f, Instructions.Count, (int i) => {
                // Wait until the view is loaded
                if (!Loaded)
                {
                    return;
                }

                // Remove the previous instruction
                if (i > 0)
                {
                    Instructions[i - 1].Animate(new UIAnimator.FadeOut(0.2f, () => {
                        Instructions[i - 1].Visible = false;
                        ShowInstruction(i);
                    }));
                }
                else
                {
                    ShowInstruction(i);
                }
            }, () => {
                if (Loaded)
                {
                    Elements["next"].Visible = true;
                    Elements["next"].Animate(new UIAnimator.FadeIn(0.5f));
                }
            });
        }