Small change in the config display system.
This commit is contained in:
parent
8677ff464d
commit
318c8119a0
@ -157,8 +157,9 @@ public static class ConfigModule
|
|||||||
Write(new string(' ', indents * 4) + "]", ConsoleColor.DarkGray, newLine);
|
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 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);
|
Write(item, ConsoleColor.Yellow, newLine);
|
||||||
|
else if (item is bool itemBool) Write(item, itemBool ? ConsoleColor.Green : ConsoleColor.Red, newLine);
|
||||||
else if (item is char)
|
else if (item is char)
|
||||||
{
|
{
|
||||||
Write("\'", ConsoleColor.DarkGray, false);
|
Write("\'", ConsoleColor.DarkGray, false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user