Esempio n. 1
0
 public void Print(string text)
 {
     if (text.Length > DisplaySystem.COLS - borderWidth * 2)
     {
         string[] lines = Utils.Split(text, DisplaySystem.COLS - borderWidth * 2);
         foreach (string line in lines)
         {
             Print(line);
         }
     }
     else
     {
         foreach (char i in text)
         {
             if (i == '\n')
             {
                 Cursor.NextLine();
                 continue;
             }
             Screen.TypeChar(Utils.GetCharNumber(i), Cursor.x, Cursor.y);
             Cursor.Next();
         }
     }
 }