mirror of
https://github.com/Theaninova/HitScoreVisualizer.git
synced 2026-01-08 08:42:49 +00:00
Bugfixing
This commit is contained in:
@@ -31,7 +31,7 @@ namespace HitScoreVisualizer
|
|||||||
public const char format_indicatorChar = format_indicator;
|
public const char format_indicatorChar = format_indicator;
|
||||||
public const char format_lineBreak = 'n';
|
public const char format_lineBreak = 'n';
|
||||||
|
|
||||||
public const bool percentages = false;
|
public const bool percentages = true;
|
||||||
public const int maxBeforeCutScore = 70;
|
public const int maxBeforeCutScore = 70;
|
||||||
public const int maxAfterCutScore = 30;
|
public const int maxAfterCutScore = 30;
|
||||||
public const int maxAccuracyScore = 10;
|
public const int maxAccuracyScore = 10;
|
||||||
@@ -429,6 +429,11 @@ namespace HitScoreVisualizer
|
|||||||
|
|
||||||
StringBuilder formattedBuilder = new StringBuilder();
|
StringBuilder formattedBuilder = new StringBuilder();
|
||||||
|
|
||||||
|
if (percentages)
|
||||||
|
formattedBuilder.Append( "<color=#" + floatToHexColor(1f - score / 110f) + floatToHexColor(score / 110f) + "00>" + (int) ((score / 110f) * 100f) + "%\n");
|
||||||
|
else
|
||||||
|
formattedBuilder.Append("<color=#" + floatToHexColor(1f - score / 110f) + floatToHexColor(score / 110f) + "00>" + score + "\n");
|
||||||
|
|
||||||
if (beforeCutScore == beforeMax)
|
if (beforeCutScore == beforeMax)
|
||||||
formattedBuilder.Append("<color=#FFFFFF>P ");
|
formattedBuilder.Append("<color=#FFFFFF>P ");
|
||||||
else
|
else
|
||||||
@@ -444,8 +449,6 @@ namespace HitScoreVisualizer
|
|||||||
else
|
else
|
||||||
formattedBuilder.Append("<color=#" + floatToHexColor(1f - afterCut) + floatToHexColor(afterCut) + "00>" + afterCutScore);
|
formattedBuilder.Append("<color=#" + floatToHexColor(1f - afterCut) + floatToHexColor(afterCut) + "00>" + afterCutScore);
|
||||||
|
|
||||||
formattedBuilder.Append("\n" + "<color=#" + floatToHexColor(1f - score / 110f) + floatToHexColor(score / 110f) + "00>" + score);
|
|
||||||
|
|
||||||
text.text = formattedBuilder.ToString();
|
text.text = formattedBuilder.ToString();
|
||||||
}
|
}
|
||||||
else if (instance.displayMode == mode_format)
|
else if (instance.displayMode == mode_format)
|
||||||
|
|||||||
Reference in New Issue
Block a user