From 4da9022e164818429c4f1896de3de2fca0966628 Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sun, 3 Nov 2024 02:29:23 +0700 Subject: [PATCH] open plugins ui only when non-ingame menu shows up --- CringePlugins/Ui/PluginListComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CringePlugins/Ui/PluginListComponent.cs b/CringePlugins/Ui/PluginListComponent.cs index 6cc427f..2a19cd2 100644 --- a/CringePlugins/Ui/PluginListComponent.cs +++ b/CringePlugins/Ui/PluginListComponent.cs @@ -8,6 +8,7 @@ using NLog; using NuGet; using NuGet.Models; using NuGet.Versioning; +using Sandbox.Game.Gui; using Sandbox.Graphics.GUI; using SpaceEngineers.Game.GUI; using static ImGuiNET.ImGui; @@ -42,7 +43,7 @@ public class PluginListComponent : IRenderComponent private void GuiControlCreated(object obj) { - if (obj is MyGuiScreenMainMenu) + if (obj is MyGuiScreenMainMenu && MyGuiScreenGamePlay.Static is null) _open = true; }