open plugins ui only when non-ingame menu shows up

This commit is contained in:
zznty
2024-11-03 02:29:23 +07:00
parent ad204c6ecb
commit 4da9022e16

View File

@@ -8,6 +8,7 @@ using NLog;
using NuGet; using NuGet;
using NuGet.Models; using NuGet.Models;
using NuGet.Versioning; using NuGet.Versioning;
using Sandbox.Game.Gui;
using Sandbox.Graphics.GUI; using Sandbox.Graphics.GUI;
using SpaceEngineers.Game.GUI; using SpaceEngineers.Game.GUI;
using static ImGuiNET.ImGui; using static ImGuiNET.ImGui;
@@ -42,7 +43,7 @@ public class PluginListComponent : IRenderComponent
private void GuiControlCreated(object obj) private void GuiControlCreated(object obj)
{ {
if (obj is MyGuiScreenMainMenu) if (obj is MyGuiScreenMainMenu && MyGuiScreenGamePlay.Static is null)
_open = true; _open = true;
} }