add imgui about window
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / linux-arm (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled

This commit is contained in:
Green Sky
2025-08-01 14:53:37 +02:00
parent 2482b7dd09
commit bc039d19cb
2 changed files with 9 additions and 0 deletions

View File

@@ -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();

View File

@@ -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};