public static void ArrayWrite(AlCConfigScheme preset, string[] array) {
     foreach (string writeObj in array) {
         lock (LockObj) {
             AlConsole.WriteLine(preset, writeObj);
         }
     }
 }
 public static void ColorizeWrite(AlCConfigScheme preset, string message, ConsoleColor[] colors, bool isAlConsole = true) {
     if (isAlConsole) { AlConsole.Write(preset, ""); }
     string[] disParsedMessage = message.Split("^");
     for (int i = 0; i < disParsedMessage.Length; i++) {
         Console.ForegroundColor = colors[i];
         Console.Write(disParsedMessage[i]);
     }
     Console.ResetColor();
 }
示例#3
0
 public static void ColorizeWriteLine(AlCConfigScheme preset, string message, ConsoleColor[] colors, bool isAlConsole = true)
 {
     ColorizeWrite(preset, message, colors, isAlConsole);
     Console.WriteLine();
 }