pkdawson / imgui-godot

Dear ImGui plugin for Godot 4
MIT License
492 stars 28 forks source link

Docking? #47

Closed Shadowblitz16 closed 7 months ago

Shadowblitz16 commented 1 year ago

Docking doesn't seem to work

    public override void _Process(double delta)
    {
        base._Process(delta);
        if(ImGui.BeginMainMenuBar())
        {
            if (ImGui.BeginMenu("File" ))
            {
                if (ImGui.MenuItem("New"     )) EmitSignal(SignalName.FileNew);
                ImGui.Separator();
                if (ImGui.MenuItem("Open"    )) EmitSignal(SignalName.FileOpen);
                if (ImGui.MenuItem("Save"    )) EmitSignal(SignalName.FileSave);
                if (ImGui.MenuItem("SaveAs..")) EmitSignal(SignalName.FileSaveAs);
                ImGui.Separator();
                if (ImGui.MenuItem("Exit"    )) EmitSignal(SignalName.FileExit);
                ImGui.EndMenu();
            }
            if (ImGui.BeginMenu("Tools"))
            {
                if (ImGui.MenuItem("Screen" )) EmitSignal(SignalName.ToolsScreen);
                ImGui.EndMenu();
            }
            ImGui.EndMainMenuBar();

        }
        ImGui.DockSpaceOverViewport();
    }
Shadowblitz16 commented 1 year ago

woah if I move ImGui.DockSpaceOverViewport() to the child node it works but is extremely buggy.

here are a list of some things that happen...

pkdawson commented 1 year ago

Please upload a small project which reproduces the issue you're describing. You can attach a .zip to a GitHub comment.