forked from Green-Sky/tomato
add imgui about window
This commit is contained in:
@@ -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();
|
||||
|
@@ -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};
|
||||
|
Reference in New Issue
Block a user