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

Method onOpenInLocationWindow

source/Gui/SimulationParametersMainWindow.cpp:698–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void 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
706void SimulationParametersMainWindow::onCenterLocation(int locationIndex)
707{

Callers

nothing calls this directly

Calls 2

toFloatFunction · 0.85
addLocationWindowMethod · 0.80

Tested by

no test coverage detected