Reflection to simplify transforms + some refactoring

This commit is contained in:
Adonais Romero González
2016-10-07 16:59:52 -05:00
parent 965e542eaf
commit 7277cf5af1
6 changed files with 72 additions and 59 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Graphics.UserInterface
/// </summary>
public class CatchComboCounter : StandardComboCounter
{
public CatchComboCounter()
public CatchComboCounter() : base()
{
CanPopOutWhenBackwards = true;
}
@ -30,15 +30,15 @@ namespace osu.Game.Graphics.UserInterface
// Animate rollover only when going backwards
if (newValue > currentValue)
{
updateTransforms(typeof(TranformULongCounter));
removeTransforms(typeof(TranformULongCounter));
updateTransforms(typeof(TransformULongCounter));
removeTransforms(typeof(TransformULongCounter));
VisibleCount = newValue;
}
else
{
// Backwards pop-up animation has no tint colour
popOutSpriteText.Colour = countSpriteText.Colour;
transformCount(new TranformULongCounter(Clock), currentValue, newValue);
transformCount(new TransformULongCounter(Clock), currentValue, newValue);
}
}