mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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
|
RelativeSizeAxes = Axes.Both
|
||||||
},
|
},
|
||||||
judgements = new JudgementContainer<DrawableManiaJudgement>
|
judgements = new DrawableManiaJudgementAdjustmentContainer(HIT_TARGET_POSITION),
|
||||||
{
|
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Y = HIT_TARGET_POSITION + 150,
|
|
||||||
},
|
|
||||||
topLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
|
topLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user