| 696 | } |
| 697 | |
| 698 | void SimulationParametersMainWindow::onOpenInLocationWindow() |
| 699 | { |
| 700 | auto mousePos = ImGui::GetMousePos(); |
| 701 | auto offset = RealVector2D{50.0f + toFloat(_locationWindowCounter) * 15, toFloat(_locationWindowCounter) * 15}; |
| 702 | LocationController::get().addLocationWindow(_selectedLocationIndex, {mousePos.x + offset.x, mousePos.y + offset.y}); |
| 703 | _locationWindowCounter = (_locationWindowCounter + 1) % 8; |
| 704 | } |
| 705 | |
| 706 | void SimulationParametersMainWindow::onCenterLocation(int locationIndex) |
| 707 | { |
nothing calls this directly
no test coverage detected