Properly enabled docking for the application.

RefactorUnifiedBlendTreeStateMachineHandling
Martin Felis 2023-04-15 00:24:24 +02:00
parent 26d070c4d3
commit 3f609310e2
1 changed files with 4 additions and 1 deletions

View File

@ -531,7 +531,8 @@ int main() {
ImGui::CreateContext();
ImGui::StyleColorsDark();
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = nullptr;
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
io.IniFilename = "ATPImgui.ini";
io.Fonts->AddFontDefault();
io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB;
io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT;
@ -733,6 +734,8 @@ int main() {
camera_accel);
}
ImGui::DockSpaceOverViewport(ImGui::GetMainViewport());
if (ImGui::BeginMainMenuBar()) {
if (ImGui::BeginMenu("File")) {
if (ImGui::MenuItem("Quit")) {