| 22 | } |
| 23 | |
| 24 | void MassOperationsDialog::processIntern() |
| 25 | { |
| 26 | AlienImGui::Group("Cell colors"); |
| 27 | ImGui::PushID("cell"); |
| 28 | ImGui::Checkbox("##colors", &_randomizeCellColors); |
| 29 | ImGui::BeginDisabled(!_randomizeCellColors); |
| 30 | ImGui::SameLine(0, ImGui::GetStyle().FramePadding.x * 4); |
| 31 | colorCheckbox("##color1", Const::IndividualCellColor1, _checkedCellColors[0]); |
| 32 | ImGui::SameLine(); |
| 33 | colorCheckbox("##color2", Const::IndividualCellColor2, _checkedCellColors[1]); |
| 34 | ImGui::SameLine(); |
| 35 | colorCheckbox("##color3", Const::IndividualCellColor3, _checkedCellColors[2]); |
| 36 | ImGui::SameLine(); |
| 37 | colorCheckbox("##color4", Const::IndividualCellColor4, _checkedCellColors[3]); |
| 38 | ImGui::SameLine(); |
| 39 | colorCheckbox("##color5", Const::IndividualCellColor5, _checkedCellColors[4]); |
| 40 | ImGui::SameLine(); |
| 41 | colorCheckbox("##color6", Const::IndividualCellColor6, _checkedCellColors[5]); |
| 42 | ImGui::SameLine(); |
| 43 | colorCheckbox("##color7", Const::IndividualCellColor7, _checkedCellColors[6]); |
| 44 | ImGui::EndDisabled(); |
| 45 | ImGui::PopID(); |
| 46 | |
| 47 | AlienImGui::Group("Genome colors"); |
| 48 | ImGui::PushID("genome"); |
| 49 | ImGui::Checkbox("##colors", &_randomizeGenomeColors); |
| 50 | ImGui::BeginDisabled(!_randomizeGenomeColors); |
| 51 | ImGui::SameLine(0, ImGui::GetStyle().FramePadding.x * 4); |
| 52 | colorCheckbox("##color1", Const::IndividualCellColor1, _checkedGenomeColors[0]); |
| 53 | ImGui::SameLine(); |
| 54 | colorCheckbox("##color2", Const::IndividualCellColor2, _checkedGenomeColors[1]); |
| 55 | ImGui::SameLine(); |
| 56 | colorCheckbox("##color3", Const::IndividualCellColor3, _checkedGenomeColors[2]); |
| 57 | ImGui::SameLine(); |
| 58 | colorCheckbox("##color4", Const::IndividualCellColor4, _checkedGenomeColors[3]); |
| 59 | ImGui::SameLine(); |
| 60 | colorCheckbox("##color5", Const::IndividualCellColor5, _checkedGenomeColors[4]); |
| 61 | ImGui::SameLine(); |
| 62 | colorCheckbox("##color6", Const::IndividualCellColor6, _checkedGenomeColors[5]); |
| 63 | ImGui::SameLine(); |
| 64 | colorCheckbox("##color7", Const::IndividualCellColor7, _checkedGenomeColors[6]); |
| 65 | ImGui::EndDisabled(); |
| 66 | ImGui::PopID(); |
| 67 | |
| 68 | AlienImGui::Group("Cell Energies"); |
| 69 | ImGui::Checkbox("##energies", &_randomizeEnergies); |
| 70 | ImGui::SameLine(0, ImGui::GetStyle().FramePadding.x * 4); |
| 71 | auto posX = ImGui::GetCursorPos().x; |
| 72 | ImGui::BeginDisabled(!_randomizeEnergies); |
| 73 | AlienImGui::InputFloat(AlienImGui::InputFloatParameters().format("%.1f").name("Minimum energy").textWidth(RightColumnWidth), _minEnergy); |
| 74 | ImGui::SetCursorPosX(posX); |
| 75 | AlienImGui::InputFloat(AlienImGui::InputFloatParameters().format("%.1f").name("Maximum energy").textWidth(RightColumnWidth), _maxEnergy); |
| 76 | ImGui::EndDisabled(); |
| 77 | |
| 78 | AlienImGui::Group("Cell ages"); |
| 79 | ImGui::Checkbox("##ages", &_randomizeAges); |
| 80 | ImGui::SameLine(0, ImGui::GetStyle().FramePadding.x * 4); |
| 81 | posX = ImGui::GetCursorPos().x; |
nothing calls this directly
no test coverage detected