public void SetOutroType(OutroType outroType) { string section = ""; int paragraphs = 0; List <string> tempList = new List <string>(); switch (outroType) { case OutroType.GameOver: section = "gameover"; paragraphs = 1; ActiveSong = Music.none; scrolling = true; break; case OutroType.RebelEnd: section = "rebelending"; paragraphs = 5; ActiveSong = Music.Outro; scrolling = true; break; case OutroType.AllianceEnd: section = "allianceending"; paragraphs = 7; ActiveSong = Music.Outro; scrolling = true; break; case OutroType.OnYourOwnEnd: section = "onyourownending"; paragraphs = 8; ActiveSong = Music.GoingOut; scrolling = false; textTimer = ParagraphTime; textColor = new Color(0, 0, 0, 0); fadeOut = false; currentLine = ""; break; } for (int i = 1; i <= paragraphs; i++) { tempList.Add(section + i.ToString()); } if (scrolling) { textBox.LoadFormattedText(section, tempList, null); textHeight = (int)spriteFont.MeasureString(TextUtils.WordWrap(spriteFont, textBox.GetText(), TextBoxWidth)).Y; } else { for (int i = 1; i <= paragraphs; i++) { text.Add(outroFile.GetPropertyAsString(section, section + i, "I AM ERROR!")); } text.Add("The End"); } }