diff --git a/src/Rust.UIFramework/Colors/UiColor.cs b/src/Rust.UIFramework/Colors/UiColor.cs index 477b153..d438695 100644 --- a/src/Rust.UIFramework/Colors/UiColor.cs +++ b/src/Rust.UIFramework/Colors/UiColor.cs @@ -124,7 +124,7 @@ public static UiColor ParseHexColor(string hexColor) ReadOnlySpan span = hexColor.AsSpan(); if (span[0] == '#') { - span = span[1..]; + span = span.Slice(1); } byte red = byte.Parse(span.Slice(0, 2), NumberStyles.HexNumber); diff --git a/src/Rust.UIFramework/Extensions/TypeExt.cs b/src/Rust.UIFramework/Extensions/TypeExt.cs index f4323c1..ad93e4c 100644 --- a/src/Rust.UIFramework/Extensions/TypeExt.cs +++ b/src/Rust.UIFramework/Extensions/TypeExt.cs @@ -49,7 +49,7 @@ public static string GetRealTypeName(this Type t) } StringBuilder sb = StringBuilderPool.Instance.Get(); - sb.Append(t.Name.AsSpan()[..t.Name.IndexOf('`')]); + sb.Append(t.Name.AsSpan().Slice(0, t.Name.IndexOf('`'))); sb.Append('<'); Type[] args = t.GetGenericArguments(); for (int index = 0; index < args.Length; index++) diff --git a/src/Rust.UIFramework/Rust.UIFramework.csproj b/src/Rust.UIFramework/Rust.UIFramework.csproj index c68ecd3..1b7bf7e 100644 --- a/src/Rust.UIFramework/Rust.UIFramework.csproj +++ b/src/Rust.UIFramework/Rust.UIFramework.csproj @@ -37,12 +37,12 @@ ..\References\Assembly-CSharp-firstpass.dll - - - - - - + + ..\References\Carbon.Common.dll + + + ..\References\Carbon.SDK.dll + ..\References\Facepunch.Console.dll @@ -58,25 +58,25 @@ ..\References\mscorlib.dll - - - - + + ..\References\Newtonsoft.Json.dll + + ..\References\Oxide.Core.dll - + ..\References\Oxide.CSharp.dll - + ..\References\Oxide.References.dll - + ..\References\Oxide.Rust.dll - + ..\References\Oxide.SQLite.dll - + ..\References\Oxide.Unity.dll