MCPcopy Create free account
hub / github.com/chrxh/alien / processRunButton

Method processRunButton

source/Gui/TemporalControlWindow.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void TemporalControlWindow::processRunButton()
132{
133 ImGui::BeginDisabled(_simulationFacade->isSimulationRunning());
134 auto result = AlienImGui::ToolbarButton(AlienImGui::ToolbarButtonParameters().text(ICON_FA_PLAY));
135 AlienImGui::Tooltip("Run");
136 if (result) {
137 _history.clear();
138 _simulationFacade->runSimulation();
139 printOverlayMessage("Run");
140 }
141 ImGui::EndDisabled();
142}
143
144void TemporalControlWindow::processPauseButton()
145{

Callers

nothing calls this directly

Calls 4

printOverlayMessageFunction · 0.85
isSimulationRunningMethod · 0.45
clearMethod · 0.45
runSimulationMethod · 0.45

Tested by

no test coverage detected