Skip to content

Black Overlay Background #86

@Sakurey

Description

@Sakurey

Image

Windows 10 does not have this problem, the problem only occurs on Windows 11

Code of UI

using ClickableTransparentOverlay;
using ImGuiNET;

namespace Custom19._84UI.UI;

internal class SampleOverlay : Overlay
{
private bool _showWindow = true;
private bool _showDemo = false;
public SampleOverlay() : base(3840, 2160)
{
}

protected override Task PostInitialized()
{
    this.VSync = false;
    return Task.CompletedTask;
}

protected override void Render()
{
    if (_showDemo)
    {
        ImGui.ShowDemoWindow(ref _showDemo);
    }
    if (!_showWindow) 
    {
        this.Close();
        return;
    }

    ImGui.Begin("Marsey Menu", ref _showWindow);
    
    if (ImGui.Button("Show Demo Window"))
    {
        _showDemo = !_showDemo;
    }
    
    ImGui.End();
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions