mirror of
https://github.com/osukey/osukey.git
synced 2025-06-19 18:27:58 +09:00
General cleanup.
This commit is contained in:
parent
05ac73edcb
commit
30b5b6f7e2
@ -49,7 +49,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
|
|||||||
protected override TaikoPiece CreateMainPiece() => new ElongatedCirclePiece(HitObject.IsStrong)
|
protected override TaikoPiece CreateMainPiece() => new ElongatedCirclePiece(HitObject.IsStrong)
|
||||||
{
|
{
|
||||||
Length = (float)(HitObject.Duration / HitObject.ScrollTime),
|
Length = (float)(HitObject.Duration / HitObject.ScrollTime),
|
||||||
PlayfieldLengthReference = () => Parent.DrawSize.X / DrawScale.X
|
PlayfieldLengthReference = () => Parent.DrawSize.X
|
||||||
};
|
};
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly List<Key> validKeys = new List<Key>(new[] { Key.D, Key.F, Key.J, Key.K });
|
private readonly List<Key> validKeys = new List<Key>(new[] { Key.D, Key.F, Key.J, Key.K });
|
||||||
|
|
||||||
public override Vector2 OriginPosition => new Vector2(DrawHeight / 2f);
|
public override Vector2 OriginPosition => new Vector2(DrawHeight / 2);
|
||||||
|
|
||||||
protected override Container<Drawable> Content => bodyContainer;
|
protected override Container<Drawable> Content => bodyContainer;
|
||||||
|
|
||||||
|
@ -215,6 +215,9 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
hitExplosionContainer.Children.FirstOrDefault(e => e.Judgement == judgedObject.Judgement)?.VisualiseSecondHit();
|
hitExplosionContainer.Children.FirstOrDefault(e => e.Judgement == judgedObject.Judgement)?.VisualiseSecondHit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Container for hit objects. Locks width to parent width even through scale.
|
||||||
|
/// </summary>
|
||||||
private class HitObjectContainer : Container
|
private class HitObjectContainer : Container
|
||||||
{
|
{
|
||||||
public HitObjectContainer()
|
public HitObjectContainer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user