From b21023ba2416b9589d4a8d0156f117fa8fb8c817 Mon Sep 17 00:00:00 2001 From: hzhang Date: Tue, 18 Feb 2025 16:05:37 +0000 Subject: [PATCH] fix: missing type --- .../Nodes/Buttons/PoloniumTextureButton.cs | 2 +- Polonium.csproj | 12 ++++++------ src/PoloniumRegistry.cs | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Package/embedded/GlobalClasses/Nodes/Buttons/PoloniumTextureButton.cs b/Package/embedded/GlobalClasses/Nodes/Buttons/PoloniumTextureButton.cs index 03a3550..076fdda 100644 --- a/Package/embedded/GlobalClasses/Nodes/Buttons/PoloniumTextureButton.cs +++ b/Package/embedded/GlobalClasses/Nodes/Buttons/PoloniumTextureButton.cs @@ -24,7 +24,7 @@ public partial class PoloniumTextureButton : TextureButton set { PrivateTextureSetName = value; - t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null); + TextureSet t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null); if (t is not null) { TextureNormal = t.Normal; diff --git a/Polonium.csproj b/Polonium.csproj index 2336965..8de0b29 100644 --- a/Polonium.csproj +++ b/Polonium.csproj @@ -31,7 +31,6 @@ - @@ -50,13 +49,14 @@ - - - + + + - - + + + diff --git a/src/PoloniumRegistry.cs b/src/PoloniumRegistry.cs index 1e08831..5298889 100644 --- a/src/PoloniumRegistry.cs +++ b/src/PoloniumRegistry.cs @@ -7,7 +7,6 @@ namespace Polonium; public class PoloniumRegistry { - public static IGlobalRegistry GlobalRegistry { get; set; } private static PoloniumRegistry InternalInstance { get; set; } public static PoloniumRegistry Instance => InternalInstance ??= new PoloniumRegistry(); public Config Config { get; set; }