public ChapterCompletionScreen(TimeSpan t, TimeSpan r, bool nr) { PersonalLoadContent(); SetDrawFrame(position); drawTex = completionScreenTexture; this.animatedAlphaFadeIn(90); replay = new Button(new Rectangle(-450, 400, 250, 50), replayLevelTexture); toTitleScreen = new Button(new Rectangle(1000, 400, 500, 50), titleScreenTexture); chapterLogo = new View(new Rectangle(1200, 20, 456, 56), chapterTexture); completeLogo = new View(new Rectangle(-600, 90, 533, 56), completeTexture); shineBar = new View(new Rectangle(-100, 20, 100, 56), shine); replay.animatedFrameSlide(new Point(470, 0), 45, true); toTitleScreen.animatedFrameSlide(new Point(-720, 0), 45, true); chapterLogo.animatedFrameSlide(new Point(-1200, 0), 30, true); completeLogo.animatedFrameSlide(new Point(867, 0), 30, true); sparklesTop = new Emitter(new Rectangle(0, 0, 800, 1), new Vector2(0f, 1f), 0, 0.95, .04, 160, 150, particleArt); sparklesTop.drawInScreenCoordinates = true; sparklesTop.isEmitting = true; sparklesTop.particlesFade = true; sparklesBottom = new Emitter(new Rectangle(0, 479, 800, 1), new Vector2(0f, -1f), 0, 0.95, .04, 160, 150, particleArt); sparklesBottom.drawInScreenCoordinates = true; sparklesBottom.isEmitting = true; sparklesBottom.particlesFade = true; completionTime = t; completionTimeString = string.Format("{0:00}:{1:00}:{2:0000}", (int)completionTime.Minutes, (int)completionTime.Seconds, (int)completionTime.Milliseconds); RecordTimeString = string.Format("{0:00}:{1:00}:{2:0000}", (int)r.Minutes, (int)r.Seconds, (int)r.Milliseconds); shineBarFinished = false; showingTimes = false; newRecord = nr; glowColor = new Color(value, value, 0); flag = GameMenuFlag.NoFlag; MusicManager.PlaySoundEffect(SoundEffects.levelComplete1); //Not sure why this doesnt work, but we'll need it eventually //System.IO.DirectoryInfo contentDir = new System.IO.DirectoryInfo("Level"); //chapterFiles = contentDir.GetFiles(); }