1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 23:53:21 +08:00

Make HitCircles work without using ChildScale.

This commit is contained in:
Dean Herbert 2016-11-19 16:32:48 +09:00
parent acb85d0140
commit d359057db6
2 changed files with 2 additions and 4 deletions

View File

@ -79,7 +79,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
//sane defaults
ring.Alpha = circle.Alpha = number.Alpha = approachCircle.Alpha = glow.Alpha = 1;
explode.Alpha = 0;
Scale = Vector2.One;
Scale = new Vector2(0.5f); //this will probably need to be moved to DrawableHitObject at some point.
//always-present transforms
Transforms.Add(new TransformAlpha { StartTime = t - 1000, EndTime = t - 800, StartValue = 0, EndValue = 1 });

View File

@ -47,14 +47,12 @@ namespace osu.Game.Modes.Osu.UI
AddInternal(hitObjectContainer = new HitObjectContainer
{
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
});
}
class HitObjectContainer : Container
{
public override Vector2 ChildScale => new Vector2(0.625f);
protected override Vector2 DrawScale => new Vector2(DrawSize.X / 512);
}
}
}