Esempio n. 1
0
 public MyConsole()
 {
     MyConsole.AllocConsole();
     Console.SetOut(new StreamWriter(Console.OpenStandardOutput())
     {
         AutoFlush = true
     });
     this.visible = true;
 }
Esempio n. 2
0
 public ModLoader()
 {
     if (Application.platform == RuntimePlatform.WindowsPlayer)
     {
         this.myConsole = new MyConsole();
         mainConsole    = this.myConsole;
     }
     myConsole.tryLogCustom("Loading ModLoader Project " + version, logTag, LogType.Generic);
 }
Esempio n. 3
0
 public void showConsole()
 {
     MyConsole.ShowWindow(MyConsole.GetConsoleWindow(), 5);
     this.visible = true;
 }
Esempio n. 4
0
 public void hideConsole()
 {
     MyConsole.ShowWindow(MyConsole.GetConsoleWindow(), 0);
     this.visible = false;
 }