mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Make HitCircles work without using ChildScale.
This commit is contained in:
@ -79,7 +79,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
|
|||||||
//sane defaults
|
//sane defaults
|
||||||
ring.Alpha = circle.Alpha = number.Alpha = approachCircle.Alpha = glow.Alpha = 1;
|
ring.Alpha = circle.Alpha = number.Alpha = approachCircle.Alpha = glow.Alpha = 1;
|
||||||
explode.Alpha = 0;
|
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
|
//always-present transforms
|
||||||
Transforms.Add(new TransformAlpha { StartTime = t - 1000, EndTime = t - 800, StartValue = 0, EndValue = 1 });
|
Transforms.Add(new TransformAlpha { StartTime = t - 1000, EndTime = t - 800, StartValue = 0, EndValue = 1 });
|
||||||
|
@ -47,14 +47,12 @@ namespace osu.Game.Modes.Osu.UI
|
|||||||
AddInternal(hitObjectContainer = new HitObjectContainer
|
AddInternal(hitObjectContainer = new HitObjectContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
class HitObjectContainer : Container
|
class HitObjectContainer : Container
|
||||||
{
|
{
|
||||||
public override Vector2 ChildScale => new Vector2(0.625f);
|
protected override Vector2 DrawScale => new Vector2(DrawSize.X / 512);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user