From 641a0ca2e3560e285501fc4f23ecc9ada8448f95 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sat, 13 Apr 2024 16:15:19 +0300 Subject: [PATCH] Fix console notify lines width in cooked game --- Source/Game/Console/ConsoleScript.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Game/Console/ConsoleScript.cs b/Source/Game/Console/ConsoleScript.cs index 571da11..e0f7b4a 100644 --- a/Source/Game/Console/ConsoleScript.cs +++ b/Source/Game/Console/ConsoleScript.cs @@ -174,7 +174,7 @@ public class ConsoleScript : Script rootlocation.Y = -rootControl.Control.Height; rootControl.Control.Location = rootlocation; - Console.Print("Renderer: " + GPUDevice.Instance.RendererType); + //Console.Print("Renderer: " + GPUDevice.Instance.RendererType); } private void OnSendLog(LogType level, string msg, Object obj, string stackTrace) @@ -272,8 +272,9 @@ public class ConsoleScript : Script public override void OnUpdate() { - base.OnUpdate(); - +#if !USE_EDITOR + consoleNotifyBox.Width = consoleBox.Width; +#endif if (!Console.IsOpen && Input.GetAction("ClearConsole")) Console.Clear();