src/Screens/SimulatorScreen.cpp
// draw top-level "Simulation" tab that lists all simulations
draw top-level "Simulation" tab that lists all simulations
draw top - level " Simulation " tab that lists all simulations
void drawSimulationTab(SimulatorScreen::Impl& impl) {
         osc::MainEditorState& st = *impl.mes;
        ImGui::TextUnformatted("Scrubber:");
        ImGui::Separator();
        ImGui::Dummy(ImVec2{0.0f, 0.3f});
        UiSimulation* sim = st.getFocusedSim();
        if (sim) {
            Report& report = selectReportBasedOnScrubbing(*sim, st.focusedSimulationScrubbingTime);
            drawSimulationScrubber(st, *sim, report);
        } else {
            ImGui::TextDisabled("(no simulation selected)");
        }
        ImGui::Dummy(ImVec2{0.0f, 1.0f});
        ImGui::TextUnformatted("Simulations:");
        ImGui::Separator();
        ImGui::Dummy(ImVec2{0.0f, 0.3f});
        for (size_t i = 0; i < st.simulations.size(); ++i) {
            drawSimulationProgressBarEtc(impl, static_cast<int>(i));
        }
    }
void drawSimulationTab ( SimulatorScreen :: Impl & impl ) { osc :: MainEditorState & st = * impl . mes ; ImGui :: TextUnformatted ( " " ) ; ImGui :: Separator ( ) ; ImGui :: Dummy ( ImVec2 { 0.0f , 0.3f } ) ; UiSimulation * sim = st . getFocusedSim ( ) ; if ( sim ) { Report & report = selectReportBasedOnScrubbing ( * sim , st . focusedSimulationScrubbingTime ) ; drawSimulationScrubber ( st , * sim , report ) ; } else { ImGui :: TextDisabled ( " " ) ; } ImGui :: Dummy ( ImVec2 { 0.0f , 1.0f } ) ; ImGui :: TextUnformatted ( " " ) ; ImGui :: Separator ( ) ; ImGui :: Dummy ( ImVec2 { 0.0f , 0.3f } ) ; for ( size_t i = 0 ; i < st . simulations . size ( ) ; ++ i ) { drawSimulationProgressBarEtc ( impl , static_cast < int > ( i ) ) ; } }
draw top-level "Simulation" tab that lists all simulations
draw top - level " Simulation " tab that lists all simulations
// draw scrubber for currently-selected sim // draw simulations list