private void setTitle() { TitleComponent title = new TitleComponent("High Scores", "LindseyLarge", Color.Yellow, new Vector2(25, 0)); TransitionWrapper transition; transition = new BaseTransition(15, TransitionState.intro); transition = new FloatTitle(transition, new Vector2(0, -20)); transition = new FadeTitle(transition); transition.setTransition(title); title.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatTitle(transition, new Vector2(0, 20)); transition = new FadeTitle(transition); title.Select = transition; transition.State = TransitionState.exit; title.Exit = transition; addComponent(title); }
private void setTitle() { TitleComponent title = new TitleComponent("Touch Pad", "Lindsey", Color.Yellow, new Vector2(120, 210), TextAlignment.center); TransitionWrapper transition; transition = new BaseTransition(15, TransitionState.intro); transition = new FloatTitle(transition, new Vector2(0, 15)); transition = new FadeTitle(transition); transition.setTransition(title); title.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatTitle(transition, new Vector2(0, -15)); transition = new FadeTitle(transition); title.Select = transition; transition.State = TransitionState.exit; title.Exit = transition; addComponent(title); }