private void setFrame() { GraphicComponent frame = new GraphicComponent("Menus/Option Frame", new Rectangle(39, 105, 196, 360)); frame.setTransitions(new FadeComponent(15, 1), new FadeComponent(15, -1)); addComponent(frame); }
private void setBackground() { BackgroundComponent background = new BackgroundComponent("Menus/Standard Menu"); background.setTransitions(new FadeComponent(15, 1), new FadeComponent(15, -1)); addComponent(background); GraphicComponent bar = new GraphicComponent("Media Player/Media Buttons Frame", new Rectangle(52, 240, 160, 35)); bar.setTransitions(new MoveComponent(new Vector2(-200, 0), true, 15), new MoveComponent(new Vector2(200, 0), false, 15)); addComponent(bar); }