diff --git a/src/main_screen.cpp b/src/main_screen.cpp index a8c97a8..9360f9d 100644 --- a/src/main_screen.cpp +++ b/src/main_screen.cpp @@ -407,6 +407,10 @@ Screen* MainScreen::render(float time_delta, bool&) { if (ImGui::BeginMenu("Settings")) { ImGui::SeparatorText("ImGui"); + if (ImGui::MenuItem("About Dear ImGui", nullptr, _show_imgui_about)) { + _show_imgui_about = !_show_imgui_about; + } + if (ImGui::MenuItem("Style Editor", nullptr, _show_tool_style_editor)) { _show_tool_style_editor = !_show_tool_style_editor; } @@ -436,6 +440,10 @@ Screen* MainScreen::render(float time_delta, bool&) { ImGui::End(); } + if (_show_imgui_about) { + ImGui::ShowAboutWindow(&_show_imgui_about); + } + if (_show_tool_style_editor) { if (ImGui::Begin("Dear ImGui Style Editor", &_show_tool_style_editor)) { ImGui::ShowStyleEditor(); diff --git a/src/main_screen.hpp b/src/main_screen.hpp index 32011eb..b52b336 100644 --- a/src/main_screen.hpp +++ b/src/main_screen.hpp @@ -111,6 +111,7 @@ struct MainScreen final : public Screen { DebugVideoTap dvt; + bool _show_imgui_about {false}; bool _show_tool_style_editor {false}; bool _show_tool_metrics {false}; bool _show_tool_debug_log {false};