Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

266 convert window menu checkboxes to selectables #268

Merged
22 changes: 11 additions & 11 deletions Source/Core/Editor/Menus/GUI_Menu_Window/GUI_Menu_Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ void GUI_Menu_Window::Draw() {
if (ImGui::BeginMenu("Windows")) {

// Add Scene Tree Editor Window
ImGui::Checkbox("Scene Tree", &Windows_->GUI_Window_SceneTree_->Enabled_);
ImGui::Checkbox("System Log", &Windows_->GUI_Window_SystemLog_->Enabled_);
ImGui::Checkbox("Asset Explorer", &Windows_->GUI_Window_AssetExplorer_->Enabled_);
ImGui::Checkbox("Object Properties", &Windows_->GUI_Window_ObjectProperties_->Enabled_);
ImGui::Checkbox("Global Viewport Settings", &Windows_->GUI_Window_RenderingSettings_->Enabled_);
ImGui::MenuItem("Scene Tree", "", &Windows_->GUI_Window_SceneTree_->Enabled_);
ImGui::MenuItem("System Log", "", &Windows_->GUI_Window_SystemLog_->Enabled_);
ImGui::MenuItem("Asset Explorer", "", &Windows_->GUI_Window_AssetExplorer_->Enabled_);
ImGui::MenuItem("Object Properties", "", &Windows_->GUI_Window_ObjectProperties_->Enabled_);
ImGui::MenuItem("Global Viewport Settings", "", &Windows_->GUI_Window_RenderingSettings_->Enabled_);


// Framerate Widgets
if (ImGui::BeginMenu("Framerate")) {

// Framerate Related Tools
ImGui::Checkbox("Framerate Counter", &Windows_->GUI_Window_FramerateCounter_->Enabled_);
ImGui::Checkbox("Framerate Histogram", &Windows_->GUI_Window_FramerateHistogram_->Enabled_);
ImGui::Checkbox("Framerate Graph", &Windows_->GUI_Window_FramerateGraph_->Enabled_);
ImGui::Checkbox("Framerate Plot", &Windows_->GUI_Window_FrameratePlot_->Enabled_);
ImGui::Checkbox("Frame Latency Graph", &Windows_->GUI_Window_FrameLatencyGraph_->Enabled_);
ImGui::MenuItem("Framerate Counter", "", &Windows_->GUI_Window_FramerateCounter_->Enabled_);
ImGui::MenuItem("Framerate Histogram", "", &Windows_->GUI_Window_FramerateHistogram_->Enabled_);
ImGui::MenuItem("Framerate Graph", "", &Windows_->GUI_Window_FramerateGraph_->Enabled_);
ImGui::MenuItem("Framerate Plot", "", &Windows_->GUI_Window_FrameratePlot_->Enabled_);
ImGui::MenuItem("Frame Latency Graph", "", &Windows_->GUI_Window_FrameLatencyGraph_->Enabled_);

ImGui::EndMenu();
}
Expand All @@ -57,7 +57,7 @@ void GUI_Menu_Window::Draw() {
if (ImGui::BeginMenu("System Resources")) {

// Framerate Related Tools
ImGui::Checkbox("RAM", &Windows_->GUI_Window_RAMGraph_->Enabled_);
ImGui::MenuItem("RAM", "", &Windows_->GUI_Window_RAMGraph_->Enabled_);

ImGui::EndMenu();
}
Expand Down