protected override void SetGui() { SnowButton = new Button(ScreenManager.Res.X - 160, 10, 150, "Start Snow"); SnowButton.LeftClicked += (s, e) => particleManager.AddParticleEmitters(new List <ParticleEmitter>() { new SnowEmitter(new Rectangle(0, 0, 1700, 768)) }); RainButton = new Button(ScreenManager.Res.X - 160, 70, 150, "Start Rain"); RainButton.LeftClicked += (s, e) => particleManager.AddParticleEmitters(new List <ParticleEmitter>() { new RainEmitter(new Rectangle(0, 0, 1700, 768)) }); ClearButton = new Button(ScreenManager.Res.X - 160, 130, 150, "Clear Emitter"); ClearButton.LeftClicked += (s, e) => particleManager.ClearParticleEmitters(); BackButton = new Button(10, ScreenManager.Res.Y - 60, 100, "Back"); BackButton.LeftClicked += (s, e) => { ExitScreen(); }; Gui.BaseScreen.AddControls(SnowButton, RainButton, ClearButton, BackButton); base.SetGui(); }