Skip to content

Commit

Permalink
tooltips for detonator cells and coloring extended
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Oct 28, 2023
1 parent d5755ca commit c676409
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions source/Gui/HelpStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ namespace Const
" Input channel #0: value > threshold triggers creation of a bond to a cell in the vicinity, value < -threshold triggers destruction of a bond\n\n" ICON_FA_CHEVRON_RIGHT
" Output channel #0: 0 (no connection created/removed) or 1 (connection created/removed)";

std::string const DetonatorTooltip = "A detonator cell will be activated if it receives an input on channel #0 with abs(value) > threshold. Then a counter "
"is decreasing until it reaches 0. After that the detonator cell will explode.";
std::string const DetonatorTooltip = "A detonator cell will be activated if it receives an input on channel #0 with abs(value) > threshold. Then its counter "
"is decreasing after each executing until it reaches 0. After that the detonator cell will explode and the surrounding cells are highly accelerated.";

std::string const CellFunctionTooltip =
"Cells can possess a specific function that enables them to, for example, perceive their environment, process information, or "
Expand Down Expand Up @@ -381,7 +381,8 @@ namespace Const
"threshold activates constructor (only necessary in 'Manual' mode)\n\n" ICON_FA_CHEVRON_RIGHT " Sensor: abs(value) > threshold activates "
"sensor\n\n" ICON_FA_CHEVRON_RIGHT " Attacker: abs(value) > threshold activates attacker\n\n" ICON_FA_CHEVRON_RIGHT " Injector: abs(value) > threshold "
"activates injector\n\n" ICON_FA_CHEVRON_RIGHT " Muscle: The strength of the movement, bending or expansion/contraction. A negative sign corresponds to "
"the opposite action.\n\n" ICON_FA_CHEVRON_RIGHT " Reconnector: value > threshold triggers creation of a bond to a cell in the vicinity, value < -threshold triggers destruction of a bond",
"the opposite action.\n\n" ICON_FA_CHEVRON_RIGHT " Reconnector: value > threshold triggers creation of a bond to a cell in the vicinity, value < -threshold triggers destruction of a bond\n\n"
ICON_FA_CHEVRON_RIGHT " Detonator: abs(value) > threshold activates detonator",
"The following cell functions obtain their input from channel #1:\n\n" ICON_FA_CHEVRON_RIGHT " Neuron\n\n" ICON_FA_CHEVRON_RIGHT " Muscle: This channel is "
"solely utilized for acceleration due to bending. If the sign of channel #1 differs from the sign of channel #0, no acceleration will be obtained "
"during the bending process.",
Expand Down
4 changes: 2 additions & 2 deletions source/Gui/SimulationParametersWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ void _SimulationParametersWindow::processBase(
.textWidth(RightColumnWidth)
.defaultValue(origSimParameters.cellColorization)
.values({"None", "Standard cell colors", "Mutants", "Cell state", "Genome size"})
.tooltip("Here, one can set how the cells are to be colored during rendering. In addition to coloring according to the 7 cell colors, there "
"is also the option of\n\n" ICON_FA_CHEVRON_RIGHT
.tooltip("Here, one can set how the cells are to be colored during rendering. \n\n"
ICON_FA_CHEVRON_RIGHT " Standard cell colors: Each cell is assigned one of 7 default colors, which is displayed with this option. \n\n" ICON_FA_CHEVRON_RIGHT
" Mutants: Different mutants are represented by different colors (except changes in the neuronal networks and cell "
"properties).\n\n" ICON_FA_CHEVRON_RIGHT
" Cell state: green = under construction, blue = ready, red = dying\n\n" ICON_FA_CHEVRON_RIGHT " Genome size: blue = creature with small genome, red = large genome"),
Expand Down

0 comments on commit c676409

Please sign in to comment.