fix
All checks were successful
Build / Compute Version (push) Successful in 5s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 3m29s
Build / Build Nuget package (NuGet) (push) Successful in 3m6s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m8s
Build / Build Nuget package (SharedCringe) (push) Successful in 3m9s
Build / Build Launcher (push) Successful in 12m37s

This commit is contained in:
zznty
2024-11-03 20:28:57 +07:00
parent 0b984fdfea
commit 1585f19989
5 changed files with 43 additions and 4 deletions

View File

@@ -29,6 +29,22 @@
"NuGet.Versioning": "6.10.1"
}
},
"Basic.Reference.Assemblies.Net80": {
"type": "Transitive",
"resolved": "1.7.9",
"contentHash": "1wbS9ZJLFVrKD2jqv27gekIrpjpLffR9sitLQh5drWoG9KbyR/CgrAhw5I0c8Eq3zFMOToCmrpZi3VpRoInCgg==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "4.11.0"
}
},
"Basic.Reference.Assemblies.Net80Windows": {
"type": "Transitive",
"resolved": "1.7.9",
"contentHash": "98GFm8MC+pv37rTHaxBm5KFucqdJj0jK0XRHSGt2sXK9HNqtGImIFCFahxjUzskQjiUkPAzVhTou2OYZOuhhEg==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "4.11.0"
}
},
"dnlib": {
"type": "Transitive",
"resolved": "4.4.0",
@@ -1300,6 +1316,8 @@
"cringelauncher": {
"type": "Project",
"dependencies": {
"Basic.Reference.Assemblies.Net80": "[1.7.9, )",
"Basic.Reference.Assemblies.Net80Windows": "[1.7.9, )",
"CringeBootstrap.Abstractions": "[1.0.0, )",
"CringePlugins": "[1.0.0, )",
"Microsoft.CodeAnalysis.CSharp": "[4.11.0, )",

View File

@@ -22,6 +22,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.7.9" />
<PackageReference Include="Basic.Reference.Assemblies.Net80Windows" Version="1.7.9" />
<PackageReference Include="dnlib" Version="4.4.0" />
<PackageReference Include="Krafs.Publicizer" Version="2.2.1">
<PrivateAssets>all</PrivateAssets>

View File

@@ -2,6 +2,24 @@
"version": 1,
"dependencies": {
"net8.0-windows10.0.19041": {
"Basic.Reference.Assemblies.Net80": {
"type": "Direct",
"requested": "[1.7.9, )",
"resolved": "1.7.9",
"contentHash": "1wbS9ZJLFVrKD2jqv27gekIrpjpLffR9sitLQh5drWoG9KbyR/CgrAhw5I0c8Eq3zFMOToCmrpZi3VpRoInCgg==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "4.11.0"
}
},
"Basic.Reference.Assemblies.Net80Windows": {
"type": "Direct",
"requested": "[1.7.9, )",
"resolved": "1.7.9",
"contentHash": "98GFm8MC+pv37rTHaxBm5KFucqdJj0jK0XRHSGt2sXK9HNqtGImIFCFahxjUzskQjiUkPAzVhTou2OYZOuhhEg==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "4.11.0"
}
},
"dnlib": {
"type": "Direct",
"requested": "[4.4.0, )",

View File

@@ -56,7 +56,7 @@ public static class BuiltInPackages
FromAssembly<PluginsLifetime>(runtimeFramework,
[se.AsDependency(), imGui.AsDependency(), harmony.AsDependency()]
#if DEBUG
, version: new(0, 1, 4)
, version: new(0, 1, 21)
#endif
),
];

View File

@@ -46,12 +46,13 @@ internal class PluginListComponent : IRenderComponent
_packages = packagesConfig.Packages.ToImmutableDictionary(b => b.Id, b => b.Range,
StringComparer.OrdinalIgnoreCase);
MyGuiSandbox.GuiControlCreated += GuiControlCreated;
MyScreenManager.ScreenAdded += ScreenChanged;
MyScreenManager.ScreenRemoved += ScreenChanged;
}
private void GuiControlCreated(object obj)
private void ScreenChanged(MyGuiScreenBase screen)
{
_open = obj is MyGuiScreenMainMenu && MyGuiScreenGamePlay.Static is null;
_open = MyScreenManager.GetScreenWithFocus() is MyGuiScreenMainMenu && MyGuiScreenGamePlay.Static is null;
}
public void OnFrame()