Skip to content

Commit

Permalink
gui access of reconnector parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 21, 2023
1 parent f9719b8 commit dbf3af7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions source/Gui/SimulationParametersWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ void _SimulationParametersWindow::processBase(
.textWidth(RightColumnWidth)
.colorDependence(true)
.min(0)
.max(2.5f)
.max(3.0f)
.defaultValue(origSimParameters.cellFunctionAttackerRadius)
.tooltip("The maximum distance over which an attacker cell can attack another cell."),
simParameters.cellFunctionAttackerRadius);
Expand Down Expand Up @@ -1071,7 +1071,7 @@ void _SimulationParametersWindow::processBase(
if (ImGui::TreeNodeEx("Cell function: Sensor", flags)) {
AlienImGui::SliderFloat(
AlienImGui::SliderFloatParameters()
.name("Range")
.name("Radius")
.textWidth(RightColumnWidth)
.colorDependence(true)
.min(10.0f)
Expand Down Expand Up @@ -1116,6 +1116,23 @@ void _SimulationParametersWindow::processBase(
ImGui::TreePop();
}

/**
* Reconnector
*/
if (ImGui::TreeNodeEx("Cell function: Reconnector", flags)) {
AlienImGui::SliderFloat(
AlienImGui::SliderFloatParameters()
.name("Radius")
.textWidth(RightColumnWidth)
.colorDependence(true)
.min(0.0f)
.max(3.0f)
.defaultValue(origSimParameters.cellFunctionReconnectorRadius)
.tooltip("The maximum radius in which a reconnector cell can establish or destroy connections to other cells."),
simParameters.cellFunctionReconnectorRadius);
ImGui::TreePop();
}

/**
* Cell color transition rules
*/
Expand Down

0 comments on commit dbf3af7

Please sign in to comment.