Database Inspector Features
Aetheria Database Tools now has the ability to customize the shapes of items and hardpoints, and displays hardpoints when editing hull shape List elements now have foldouts Lists are presented in the Database Inspector with colors when the list type implements ITintInspector interface
This commit is contained in:
parent
f643f6cc8a
commit
1debe67958
35 changed files with 3066 additions and 499 deletions
|
|
@ -35,6 +35,31 @@ public static class Extensions
|
|||
// (temperature - itemData.MinimumTemperature) /
|
||||
// (itemData.MaximumTemperature - itemData.MinimumTemperature))));
|
||||
// }
|
||||
|
||||
// Thanks, https://stackoverflow.com/a/48599119
|
||||
public static bool ByteArrayCompare(ReadOnlySpan<byte> a1, ReadOnlySpan<byte> a2)
|
||||
{
|
||||
return a1.SequenceEqual(a2);
|
||||
}
|
||||
|
||||
public static bool ByteEquals(this byte[] a, byte[] b) => ByteArrayCompare(a, b);
|
||||
|
||||
public static char Arrow(this ItemRotation rot)
|
||||
{
|
||||
switch (rot)
|
||||
{
|
||||
case ItemRotation.None:
|
||||
return '\u2191';
|
||||
case ItemRotation.Clockwise:
|
||||
return '\u2192';
|
||||
case ItemRotation.Reversed:
|
||||
return '\u2193';
|
||||
case ItemRotation.CounterClockwise:
|
||||
return '\u2190';
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(rot), rot, null);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SplitCamelCase( this string str )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue