Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 28, 2023
1 parent 2de183b commit 316ae96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/Gui/InspectorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace
auto const CellFunctionTextWidth = 195.0f;
auto const CellFunctionDefenderWidth = 100.0f;
auto const CellFunctionBaseTabTextWidth = 150.0f;
auto const ActivityTextWidth = 100.0f;
auto const ActivityTextWidth = 130.0f;
auto const GenomeTabTextWidth = 195.0f;
auto const CellMetadataContentTextWidth = 80.0f;
auto const ParticleContentTextWidth = 80.0f;
Expand Down Expand Up @@ -515,6 +515,9 @@ void _InspectorWindow::processNeuronContent(NeuronDescription& neuron)
AlienImGui::InputFloat(
AlienImGui::InputFloatParameters().name("Weight").step(0.05f).textWidth(ActivityTextWidth), neuron.weights.at(_selectedOutput).at(_selectedInput));
AlienImGui::InputFloat(AlienImGui::InputFloatParameters().name("Bias").step(0.05f).textWidth(ActivityTextWidth), neuron.biases.at(_selectedOutput));
AlienImGui::Combo(
AlienImGui::ComboParameters().name("Activation function").textWidth(ActivityTextWidth).values({"Sigmoid", "Binary", "Linear"}),
neuron.activationFunctions.at(_selectedOutput));
ImGui::TreePop();
}
}
Expand Down

0 comments on commit 316ae96

Please sign in to comment.