Small change in the config display system.

This commit is contained in:
That_One_Nerd 2023-04-19 07:21:59 -04:00
parent 8677ff464d
commit 318c8119a0

View File

@ -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);