added a container for the judgements to move up or down

This commit is contained in:
Firmatorenio 2020-12-13 18:14:41 +06:00
parent b3d8347315
commit 60379b09db
2 changed files with 24 additions and 7 deletions

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
using osu.Game.Rulesets.UI;
using osu.Framework.Graphics;
namespace osu.Game.Rulesets.Mania.UI
{
public class DrawableManiaJudgementAdjustmentContainer : JudgementContainer<DrawableManiaJudgement>
{
private float scorePosition => 0;
public DrawableManiaJudgementAdjustmentContainer(float hitTargetPosition)
{
Anchor = Anchor.TopCentre;
Origin = Anchor.Centre;
RelativeSizeAxes = Axes.Both;
Y = hitTargetPosition + 150;
}
public DrawableManiaJudgementAdjustmentContainer()
: this(110) { }
}
}

View File

@ -101,13 +101,7 @@ namespace osu.Game.Rulesets.Mania.UI
{
RelativeSizeAxes = Axes.Both
},
judgements = new JudgementContainer<DrawableManiaJudgement>
{
Anchor = Anchor.TopCentre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
Y = HIT_TARGET_POSITION + 150,
},
judgements = new DrawableManiaJudgementAdjustmentContainer(HIT_TARGET_POSITION),
topLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
}
}