From 318c8119a0eaa3cf554f7da31f7f3e477fbb6a70 Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Wed, 19 Apr 2023 07:21:59 -0400 Subject: [PATCH] Small change in the config display system. --- SrcMod/Shell/Modules/ConfigModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SrcMod/Shell/Modules/ConfigModule.cs b/SrcMod/Shell/Modules/ConfigModule.cs index f9b617f..4835833 100644 --- a/SrcMod/Shell/Modules/ConfigModule.cs +++ b/SrcMod/Shell/Modules/ConfigModule.cs @@ -157,8 +157,9 @@ public static class ConfigModule Write(new string(' ', indents * 4) + "]", ConsoleColor.DarkGray, newLine); } else if (item is byte itemByte) Write($"0x{itemByte:X2}", ConsoleColor.Yellow, newLine); - else if (item is sbyte or short or ushort or int or uint or long or ulong) + else if (item is sbyte or short or ushort or int or uint or long or ulong or float or double or decimal) Write(item, ConsoleColor.Yellow, newLine); + else if (item is bool itemBool) Write(item, itemBool ? ConsoleColor.Green : ConsoleColor.Red, newLine); else if (item is char) { Write("\'", ConsoleColor.DarkGray, false);