Allow the user to configure the different color ranges.
Currently they are hard-coded like this:
std::vector<Range> JumpDuration_RangeList =
{
Range{ 0, 180, &GuiColorFailure },
Range{ 180, 195, &GuiColorWarning },
Range{ 195, 225, &GuiColorSuccess },
Range{ 225, 260, &GuiColorWarning },
Range{ 260, INT_MAX, &GuiColorFailure }
};
int JumpDuration_HighestValue = 300;
std::vector<Range> DoubleJumpDuration_RangeList =
{
Range{ 0, 75, &GuiColorSuccess },
Range{ 75, 110, &GuiColorWarning },
Range{ 110, INT_MAX, &GuiColorFailure }
};
int DoubleJumpDuration_HighestValue = 130;
Maybe different users would like to be more restrictive/relaxed when it comes to these timings.
Allowing them to be configurable seems like the easiest solution.
Allow the user to configure the different color ranges.
Currently they are hard-coded like this:
std::vector<Range> JumpDuration_RangeList = { Range{ 0, 180, &GuiColorFailure }, Range{ 180, 195, &GuiColorWarning }, Range{ 195, 225, &GuiColorSuccess }, Range{ 225, 260, &GuiColorWarning }, Range{ 260, INT_MAX, &GuiColorFailure } }; int JumpDuration_HighestValue = 300; std::vector<Range> DoubleJumpDuration_RangeList = { Range{ 0, 75, &GuiColorSuccess }, Range{ 75, 110, &GuiColorWarning }, Range{ 110, INT_MAX, &GuiColorFailure } }; int DoubleJumpDuration_HighestValue = 130;Maybe different users would like to be more restrictive/relaxed when it comes to these timings.
Allowing them to be configurable seems like the easiest solution.