mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Reflection to simplify transforms + some refactoring
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user