diff --git a/Arona/CMakeLists.txt b/Arona/CMakeLists.txt index 32a2083..955d978 100644 --- a/Arona/CMakeLists.txt +++ b/Arona/CMakeLists.txt @@ -1,4 +1,4 @@ -project(arona LANGUAGES C CXX OBJCXX OBJC) +project(arona LANGUAGES C CXX) set(CMAKE_CXX_STANDARD 23) set(CMAKE_C_STANDARD 11) diff --git a/Arona/src/arona_application.cpp b/Arona/src/arona_application.cpp index bd499b7..940d901 100644 --- a/Arona/src/arona_application.cpp +++ b/Arona/src/arona_application.cpp @@ -24,6 +24,7 @@ void configure_imgui(ImGuiIO& io) { ImGui::StyleColorsClassic(); ImGuiStyle* style = &ImGui::GetStyle(); style->TabRounding = 0; + // style->Colors[ImGuiCol_ButtonActive] = ImVec4(0.2f, 0.2f, 0.2f, 0.0f); // hide tab bar小三角使用此颜色, 如果想要隐藏, 就需要更改这个颜色 // ImGui::StyleColorsDark(); //ImGui::StyleColorsLight(); @@ -48,10 +49,21 @@ void configure_imgui(ImGuiIO& io) { void draw_imgui(float delta_time) { // 全局dockspace ImGui::DockSpaceOverViewport(); - ImGui::Begin("Arona"); - if (ImGui::Button("Test")) { + ImGui::Begin("Instrument"); + auto instruments = get_plugin_host_manager()->get_instrument_hosts(); + for (int32_t i = 0; i < instruments.size(); ++i) { + plugin_host* host = instruments.at(i); + std::string button_label = host->name + "##" + std::to_string(i); + if (ImGui::Button(button_label.c_str())) { + host->toggle_editor(); + } + } + if (ImGui::Button("Add")) { get_arona_application()->test(); } + if (ImGui::Button("Test2")) { + spdlog::info("log"); + } ImGui::End(); } diff --git a/AronaCore b/AronaCore index 47ae261..dc45766 160000 --- a/AronaCore +++ b/AronaCore @@ -1 +1 @@ -Subproject commit 47ae2613c842650e91e61d8e203737071dad1146 +Subproject commit dc4576634d6a78c1d50a84dca321ee6f05e3a8a0