fix: missing type

This commit is contained in:
h z
2025-02-18 16:05:37 +00:00
parent 2d0b25f65c
commit b21023ba24
3 changed files with 7 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ public partial class PoloniumTextureButton : TextureButton
set set
{ {
PrivateTextureSetName = value; PrivateTextureSetName = value;
t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null); TextureSet t = GlobalRegistry.TextureSetMap.GetValueOrDefault(value, null);
if (t is not null) if (t is not null)
{ {
TextureNormal = t.Normal; TextureNormal = t.Normal;

View File

@@ -31,7 +31,6 @@
<None Include="Package/build/$(AssemblyName).props" Pack="true" PackagePath="build" /> <None Include="Package/build/$(AssemblyName).props" Pack="true" PackagePath="build" />
<None Include="Package/embedded/**/*.*" Pack="true" PackagePath="build/embedded" /> <None Include="Package/embedded/**/*.*" Pack="true" PackagePath="build/embedded" />
<None Include="publish" /> <None Include="publish" />
<None Include="build" />
<Compile Remove="Package/**/*.*"/> <Compile Remove="Package/**/*.*"/>
</ItemGroup> </ItemGroup>
@@ -50,13 +49,14 @@
<ItemGroup> <ItemGroup>
<NuGetPackages Include="$(OutputPath)*.nupkg" /> <NuGetPackages Include="$(OutputPath)*.nupkg" />
</ItemGroup> </ItemGroup>
<Message Text="Printing pkgs--------------------" Importance="high" /> <Message Text="Printing pkgs--------------------" Importance="high"/>
<Message Text="Pkgs: @(NuGetPackages)" Importance="high" /> <Message Text="Pkgs: @(NuGetPackages)" Importance="high"/>
<Copy SourceFiles="@(NuGetPackages)" DestinationFolder="/NuGetFeed" /> <Copy SourceFiles="@(NuGetPackages)" DestinationFolder="/NuGetFeed"/>
</Target> </Target>
<Target Name="RestoreNoCache" BeforeTargets="Build"> <Target Name="RestoreNoCache" BeforeTargets="Build">
<Message Text="Restoring packages with no chache" Importance="high" /> <Message Text="Restoring packages with no chache" Importance="high"/>
<Exec Command="dotnet restore --no-cache" /> <Exec Command="dotnet restore --no-cache"/>
</Target> </Target>
</Project> </Project>

View File

@@ -7,7 +7,6 @@ namespace Polonium;
public class PoloniumRegistry public class PoloniumRegistry
{ {
public static IGlobalRegistry GlobalRegistry { get; set; }
private static PoloniumRegistry InternalInstance { get; set; } private static PoloniumRegistry InternalInstance { get; set; }
public static PoloniumRegistry Instance => InternalInstance ??= new PoloniumRegistry(); public static PoloniumRegistry Instance => InternalInstance ??= new PoloniumRegistry();
public Config Config { get; set; } public Config Config { get; set; }