diff --git a/Dalamud/Interface/InterfaceManager.cs b/Dalamud/Interface/InterfaceManager.cs index 16368c818..150fff5d2 100644 --- a/Dalamud/Interface/InterfaceManager.cs +++ b/Dalamud/Interface/InterfaceManager.cs @@ -5,7 +5,6 @@ using System.Text; using System.Threading.Tasks; using ImGuiNET; using ImGuiScene; -using SDL2; namespace Dalamud.Interface { @@ -30,27 +29,16 @@ namespace Dalamud.Interface private void Display() { - using (var scene = new SimpleImGuiScene("Debug", fullscreen: true)) + using (var scene = SimpleImGuiScene.CreateOverlay(RendererFactory.RendererBackend.DirectX11)) { - scene.Window.MakeTransparent(SimpleSDLWindow.CreateColorKey(0, 0, 0)); - - scene.Window.OnSDLEvent += (ref SDL.SDL_Event sdlEvent) => - { - if (sdlEvent.type == SDL.SDL_EventType.SDL_KEYDOWN && sdlEvent.key.keysym.scancode == SDL.SDL_Scancode.SDL_SCANCODE_ESCAPE) - { - scene.ShouldQuit = true; - } - return true; - }; - - scene.OnBuildUI += () => - { - ImGui.ShowDemoWindow(); - }; - + scene.OnBuildUI += DrawUI; scene.Run(); } } + private void DrawUI() + { + ImGui.ShowDemoWindow(); + } } } diff --git a/lib/ImGuiScene b/lib/ImGuiScene index d4fa5d913..54fbae7b1 160000 --- a/lib/ImGuiScene +++ b/lib/ImGuiScene @@ -1 +1 @@ -Subproject commit d4fa5d9132dceeeaf447e0b5d5f272b21a423f42 +Subproject commit 54fbae7b1ad92c0bc16c792794df8646b061b213