private void setBackground() { BackgroundComponent background = new BackgroundComponent("Menus/Standard Menu"); background.setTransitions(new FadeComponent(15, 1), new FadeComponent(15, -1)); addComponent(background); }
public void setBackground(string asset, ITransition intro, ITransition revert, ITransition select, ITransition exit) { BackgroundComponent background = new BackgroundComponent(asset); background.setTransitions(intro, revert, select, exit); addComponent(background); }
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); }
private void setBackground() { InGameComponent inGameBackground = new InGameComponent(); addComponent(inGameBackground); BackgroundComponent background = new BackgroundComponent("Menus/Game Over"); background.Position = new Vector2(36, 50); background.setTransitions(new ScaleComponent(new FadeComponent(15, 1), new Vector2(100, 180), 0.75f, 15, true), new MoveComponent(new Vector2(-200, 0), true, 15), new ScaleComponent(new FadeComponent(15, -1), new Vector2(100, 180), -0.75f, 15, false), new MoveComponent(new Vector2(200, 0), false, 15)); addComponent(background); }
private void setBackground() { InGameComponent inGameBackground = new InGameComponent(); inGameBackground.setTransitions(new DimComponent(new Vector3(100), 20, -1), new FadeComponent(15, 1), new FadeComponent(15, -1), new DimComponent(new Vector3(100), 20, 1)); addComponent(inGameBackground); BackgroundComponent background = new BackgroundComponent("Menus/Pause Menu"); background.Position = new Vector2(52, 100); background.setTransitions(new MoveComponent(null, new Vector2(0, 340), true, 20), new MoveComponent(null, new Vector2(200, 0), true, 15), new MoveComponent(null, new Vector2(-200, 0), false, 15), new MoveComponent(null, new Vector2(0, -340), false, 20)); addComponent(background); }