mirror of https://github.com/ppy/osu
JudgementText -> DrawableTaikoJudgementInfo.
This commit is contained in:
parent
9a3fd8bcf1
commit
acfa4a4aac
|
@ -12,13 +12,13 @@ namespace osu.Game.Modes.Taiko.UI
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text that is shown as judgement when a hit object is hit or missed.
|
/// Text that is shown as judgement when a hit object is hit or missed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class JudgementText : DrawableJudgementInfo<TaikoJudgementInfo>
|
public class DrawableTaikoJudgementInfo : DrawableJudgementInfo<TaikoJudgementInfo>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new judgement text.
|
/// Creates a new judgement text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="judgement">The judgement to visualise.</param>
|
/// <param name="judgement">The judgement to visualise.</param>
|
||||||
public JudgementText(TaikoJudgementInfo judgement)
|
public DrawableTaikoJudgementInfo(TaikoJudgementInfo judgement)
|
||||||
: base(judgement)
|
: base(judgement)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -32,10 +32,10 @@ private void load(OsuColour colours)
|
||||||
switch (Judgement.TaikoResult)
|
switch (Judgement.TaikoResult)
|
||||||
{
|
{
|
||||||
case TaikoHitResult.Good:
|
case TaikoHitResult.Good:
|
||||||
Colour = colours.Green;
|
Colour = colours.GreenLight;
|
||||||
break;
|
break;
|
||||||
case TaikoHitResult.Great:
|
case TaikoHitResult.Great:
|
||||||
Colour = colours.Blue;
|
Colour = colours.BlueLight;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
|
@ -48,7 +48,7 @@ public class TaikoPlayfield : Playfield<TaikoHitObject, TaikoJudgementInfo>
|
||||||
|
|
||||||
private readonly Container<HitExplosion> hitExplosionContainer;
|
private readonly Container<HitExplosion> hitExplosionContainer;
|
||||||
//private Container<DrawableBarLine> barLineContainer;
|
//private Container<DrawableBarLine> barLineContainer;
|
||||||
private readonly Container<JudgementText> judgementContainer;
|
private readonly Container<DrawableTaikoJudgementInfo> judgementContainer;
|
||||||
|
|
||||||
private readonly Container hitObjectContainer;
|
private readonly Container hitObjectContainer;
|
||||||
//private Container topLevelHitContainer;
|
//private Container topLevelHitContainer;
|
||||||
|
@ -117,7 +117,7 @@ public TaikoPlayfield()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
judgementContainer = new Container<JudgementText>
|
judgementContainer = new Container<DrawableTaikoJudgementInfo>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
BlendingMode = BlendingMode.Additive
|
BlendingMode = BlendingMode.Additive
|
||||||
|
@ -186,7 +186,7 @@ public override void OnJudgement(DrawableHitObject<TaikoHitObject, TaikoJudgemen
|
||||||
|
|
||||||
float judgementOffset = judgedObject.Judgement.Result == HitResult.Hit ? judgedObject.Position.X : 0;
|
float judgementOffset = judgedObject.Judgement.Result == HitResult.Hit ? judgedObject.Position.X : 0;
|
||||||
|
|
||||||
judgementContainer.Add(new JudgementText(judgedObject.Judgement)
|
judgementContainer.Add(new DrawableTaikoJudgementInfo(judgedObject.Judgement)
|
||||||
{
|
{
|
||||||
Anchor = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.TopLeft : Anchor.BottomLeft,
|
Anchor = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.TopLeft : Anchor.BottomLeft,
|
||||||
Origin = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.BottomCentre : Anchor.TopCentre,
|
Origin = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.BottomCentre : Anchor.TopCentre,
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<Compile Include="TaikoScoreProcessor.cs" />
|
<Compile Include="TaikoScoreProcessor.cs" />
|
||||||
<Compile Include="UI\HitTarget.cs" />
|
<Compile Include="UI\HitTarget.cs" />
|
||||||
<Compile Include="UI\InputDrum.cs" />
|
<Compile Include="UI\InputDrum.cs" />
|
||||||
<Compile Include="UI\JudgementText.cs" />
|
<Compile Include="UI\DrawableTaikoJudgementInfo.cs" />
|
||||||
<Compile Include="UI\HitExplosion.cs" />
|
<Compile Include="UI\HitExplosion.cs" />
|
||||||
<Compile Include="UI\TaikoHitRenderer.cs" />
|
<Compile Include="UI\TaikoHitRenderer.cs" />
|
||||||
<Compile Include="UI\TaikoPlayfield.cs" />
|
<Compile Include="UI\TaikoPlayfield.cs" />
|
||||||
|
|
Loading…
Reference in New Issue