private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("Clear Scores", "Lindsey", Color.Red, new Vector2(24, 60), OptionAction.previous, false, new Rectangle(24, 60, 120, 30), "Menus/Highlight"); option.ActivateSelected = false; options.add(option); option = new OptionType("Back", "Lindsey", Color.Red, new Vector2(24, 90), OptionAction.previous, true, new Rectangle(24, 90, 120, 30), "Menus/Highlight"); option.ActivateSelected = true; options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(-20, 0)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(20, 0)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }
private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("On", "Lindsey", Color.Red, new Vector2(120, 240), OptionAction.previous, true, new Rectangle(120, 240, 120, 30), "Menus/Center Highlight"); option.Alignment = TextAlignment.center; option.ActivateTransition = false; options.add(option); option = new OptionType("Off", "Lindsey", Color.Red, new Vector2(120, 270), OptionAction.previous, true, new Rectangle(120, 270, 120, 30), "Menus/Center Highlight"); option.Alignment = TextAlignment.center; option.ActivateTransition = false; options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(0, 15)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(0, 15)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }
private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("Start Game", "Lindsey", Color.Red, new Vector2(24, 100), OptionAction.startGame, true, new Rectangle(24, 100, 120, 30), "Menus/Highlight"); option.ActivateTransition = false; options.add(option); option = new OptionType("Select Level", "Lindsey", Color.Red, new Vector2(24, 130), "Select Level", new Rectangle(24, 130, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("Options", "Lindsey", Color.Red, new Vector2(24, 160), "Options", new Rectangle(24, 160, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("Exit", "Lindsey", Color.Red, new Vector2(24, 190), OptionAction.exit, false, new Rectangle(24, 190, 120, 30), "Menus/Highlight"); options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(-20, 0)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(20, 0)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }
private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("Restart", "LindseySmall", Color.Red, new Vector2(120, 135), OptionAction.startGame, true, new Rectangle(120, 135, 120, 25), "Menus/Center Highlight"); option.ActivateTransition = false; option.Alignment = TextAlignment.center; options.add(option); option = new OptionType("Quit", "LindseySmall", Color.Red, new Vector2(120, 160), OptionAction.endGame, true, new Rectangle(120, 160, 120, 25), "Menus/Center Highlight"); option.Alignment = TextAlignment.center; options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(15, 0)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(15, 0)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }
private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("Change Pattern", "Lindsey", Color.Red, new Vector2(24, 60), "Snake Pattern", new Rectangle(24, 60, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("Change Color", "Lindsey", Color.Red, new Vector2(24, 90), "Snake Color", new Rectangle(24, 90, 120, 30), "Menus/Highlight"); options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(-20, 0)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(20, 0)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }
private void setOptions() { OptionsComponent options = new OptionsComponent(7); OptionType option = new OptionType("Touch Pad", "Lindsey", Color.Red, new Vector2(24, 60), "Touch Pad", new Rectangle(24, 60, 120, 30), "Menus/Highlight"); option.ActivateSelected = false; options.add(option); option = new OptionType("Sound", "Lindsey", Color.Red, new Vector2(24, 90), "Sound", new Rectangle(24, 90, 120, 30), "Menus/Highlight"); option.ActivateSelected = false; options.add(option); option = new OptionType("Snake Options", "Lindsey", Color.Red, new Vector2(24, 120), "Snake Options", new Rectangle(24, 120, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("High Scores", "Lindsey", Color.Red, new Vector2(24, 150), "High Scores", new Rectangle(24, 150, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("How to Play", "Lindsey", Color.Red, new Vector2(24, 180), "How to Play", new Rectangle(24, 180, 120, 30), "Menus/Highlight"); options.add(option); option = new OptionType("About", "Lindsey", Color.Red, new Vector2(24, 210), "About", new Rectangle(24, 210, 120, 30), "Menus/Highlight"); options.add(option); TransitionWrapper transition = new BaseTransition(15, TransitionState.intro); transition = new FloatOptions(transition, new Vector2(-20, 0)); transition = new FadeOptions(transition); transition.setTransition(options); options.Intro = transition; transition = new BaseTransition(15, TransitionState.selected); transition = new FloatOptions(transition, new Vector2(20, 0)); transition = new FadeOptions(transition); options.Select = transition; transition.State = TransitionState.exit; options.Exit = transition; addComponent(options); }