public static void Display() { Console.Clear(); Console.Write(TextUtilils.WordWrap(outputBuffer, Console.WindowWidth)); //no new line Console.WriteLine("What shall I do?"); //newline Console.Write(">"); outputBuffer = ""; }
public static void EndGame(string endingText) { Program.Quit = true; Console.Clear(); Console.WriteLine(TextUtilils.WordWrap(endingText, Console.WindowWidth)); Console.WriteLine("\nYou Can Now close This Window..."); Console.CursorVisible = false; while (true) { Console.ReadKey(true); } }
//Public Methods public static void ShowTitleScreen() { Console.Clear(); Console.WriteLine(); Console.WriteLine(TextUtilils.WordWrap("*** Welcome to HighPerion! ***" + "\n\n\n", Console.WindowWidth)); //Console.WriteLine(TextUtilils.WordWrap("*** Welcome to HighPerion! ***"+ "\n\n\n",Console.WindowWidth)); Console.WriteLine("\nNote: You can type 'help' at any time to see a list of commands"); Console.WriteLine("\nPress a key to begin..."); Console.CursorVisible = false; Console.ReadKey(); Console.CursorVisible = true; Console.Clear(); }