Modified ManiaComboCounter behavior

This to match more with the current behavior in osu!mania.
This commit is contained in:
Adonais Romero González
2016-10-16 17:45:37 -05:00
parent 2c06764b79
commit a671765a4f
2 changed files with 41 additions and 7 deletions

View File

@ -32,6 +32,8 @@ namespace osu.Desktop.Tests
int numerator = 0, denominator = 0;
bool maniaHold = false;
ScoreCounter score = new ScoreCounter(7)
{
Origin = Anchor.TopRight,
@ -72,7 +74,7 @@ namespace osu.Desktop.Tests
};
Add(taikoCombo);
ComboCounter maniaCombo = new ManiaComboCounter
ManiaComboCounter maniaCombo = new ManiaComboCounter
{
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
@ -147,6 +149,15 @@ namespace osu.Desktop.Tests
accuracyCombo.SetFraction(numerator, denominator);
});
AddButton(@"mania hold", delegate
{
if (!maniaHold)
maniaCombo.HoldStart();
else
maniaCombo.HoldEnd();
maniaHold = !maniaHold;
});
AddButton(@"Alter stars", delegate
{
stars.Count = RNG.NextSingle() * (stars.MaxStars + 1);