Skip to content

Configurable color ranges/timings #1

@Josef37

Description

@Josef37

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions