From b3eef48006ce5b837a8d4658241209f41542ef27 Mon Sep 17 00:00:00 2001 From: Bitl Date: Thu, 15 Sep 2022 10:59:23 -0700 Subject: [PATCH] headless mode. font change. --- Novetus/NovetusLauncher/Forms/NovetusConsole.Designer.cs | 2 +- Novetus/NovetusLauncher/Forms/NovetusConsole.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Novetus/NovetusLauncher/Forms/NovetusConsole.Designer.cs b/Novetus/NovetusLauncher/Forms/NovetusConsole.Designer.cs index 45d1853..33e20c6 100644 --- a/Novetus/NovetusLauncher/Forms/NovetusConsole.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/NovetusConsole.Designer.cs @@ -39,7 +39,7 @@ | System.Windows.Forms.AnchorStyles.Right))); this.ConsoleBox.BackColor = System.Drawing.Color.Black; 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.Location = new System.Drawing.Point(0, 0); this.ConsoleBox.Name = "ConsoleBox"; diff --git a/Novetus/NovetusLauncher/Forms/NovetusConsole.cs b/Novetus/NovetusLauncher/Forms/NovetusConsole.cs index c58b214..7417205 100644 --- a/Novetus/NovetusLauncher/Forms/NovetusConsole.cs +++ b/Novetus/NovetusLauncher/Forms/NovetusConsole.cs @@ -84,6 +84,13 @@ namespace NovetusLauncher bool no3d = false; bool nomap = false; + if (ConsoleArgs["headless"] != null) + { + Visible = false; + ShowInTaskbar = false; + Opacity = 0; + } + if (ConsoleArgs["load"] != null) { 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("---------", 1, true); Util.ConsolePrint("- load | 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("LOAD - Parameters for loading clients in NovetusCMD mode.", 5, true); Util.ConsolePrint("---------", 1, true);