mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
added a container for the judgements to move up or down
This commit is contained in:
parent
b3d8347315
commit
60379b09db
@ -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) { }
|
||||
}
|
||||
}
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user