headless mode. font change.

This commit is contained in:
Bitl 2022-09-15 10:59:23 -07:00
parent ead9412837
commit b3eef48006
2 changed files with 9 additions and 1 deletions

View File

@ -39,7 +39,7 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.ConsoleBox.BackColor = System.Drawing.Color.Black; this.ConsoleBox.BackColor = System.Drawing.Color.Black;
this.ConsoleBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.ConsoleBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ConsoleBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ConsoleBox.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ConsoleBox.ForeColor = System.Drawing.Color.White; this.ConsoleBox.ForeColor = System.Drawing.Color.White;
this.ConsoleBox.Location = new System.Drawing.Point(0, 0); this.ConsoleBox.Location = new System.Drawing.Point(0, 0);
this.ConsoleBox.Name = "ConsoleBox"; this.ConsoleBox.Name = "ConsoleBox";

View File

@ -84,6 +84,13 @@ namespace NovetusLauncher
bool no3d = false; bool no3d = false;
bool nomap = false; bool nomap = false;
if (ConsoleArgs["headless"] != null)
{
Visible = false;
ShowInTaskbar = false;
Opacity = 0;
}
if (ConsoleArgs["load"] != null) if (ConsoleArgs["load"] != null)
{ {
string error = "Load Mode '" + ConsoleArgs["load"] + "' is not available. Loading " + loadMode; string error = "Load Mode '" + ConsoleArgs["load"] + "' is not available. Loading " + loadMode;
@ -317,6 +324,7 @@ namespace NovetusLauncher
Util.ConsolePrint("CMDMODE - Affects console in NovetusCMD mode.", 5, true); Util.ConsolePrint("CMDMODE - Affects console in NovetusCMD mode.", 5, true);
Util.ConsolePrint("---------", 1, true); Util.ConsolePrint("---------", 1, true);
Util.ConsolePrint("- load <Client, Server, Solo, Studio, EasterEgg> | The type of client script to load. ", 4, true); Util.ConsolePrint("- load <Client, Server, Solo, Studio, EasterEgg> | The type of client script to load. ", 4, true);
Util.ConsolePrint("- headless | Hides the console window upon launch.", 4, true);
Util.ConsolePrint("---------", 1, true); Util.ConsolePrint("---------", 1, true);
Util.ConsolePrint("LOAD - Parameters for loading clients in NovetusCMD mode.", 5, true); Util.ConsolePrint("LOAD - Parameters for loading clients in NovetusCMD mode.", 5, true);
Util.ConsolePrint("---------", 1, true); Util.ConsolePrint("---------", 1, true);