1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 03:02:53 +08:00

JudgementText -> DrawableTaikoJudgementInfo.

This commit is contained in:
Dean Herbert 2017-03-23 14:52:18 +09:00
parent 9a3fd8bcf1
commit acfa4a4aac
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
3 changed files with 8 additions and 8 deletions

View File

@ -12,13 +12,13 @@ namespace osu.Game.Modes.Taiko.UI
/// <summary>
/// Text that is shown as judgement when a hit object is hit or missed.
/// </summary>
public class JudgementText : DrawableJudgementInfo<TaikoJudgementInfo>
public class DrawableTaikoJudgementInfo : DrawableJudgementInfo<TaikoJudgementInfo>
{
/// <summary>
/// Creates a new judgement text.
/// </summary>
/// <param name="judgement">The judgement to visualise.</param>
public JudgementText(TaikoJudgementInfo judgement)
public DrawableTaikoJudgementInfo(TaikoJudgementInfo judgement)
: base(judgement)
{
}
@ -32,10 +32,10 @@ namespace osu.Game.Modes.Taiko.UI
switch (Judgement.TaikoResult)
{
case TaikoHitResult.Good:
Colour = colours.Green;
Colour = colours.GreenLight;
break;
case TaikoHitResult.Great:
Colour = colours.Blue;
Colour = colours.BlueLight;
break;
}
break;

View File

@ -48,7 +48,7 @@ namespace osu.Game.Modes.Taiko.UI
private readonly Container<HitExplosion> hitExplosionContainer;
//private Container<DrawableBarLine> barLineContainer;
private readonly Container<JudgementText> judgementContainer;
private readonly Container<DrawableTaikoJudgementInfo> judgementContainer;
private readonly Container hitObjectContainer;
//private Container topLevelHitContainer;
@ -117,7 +117,7 @@ namespace osu.Game.Modes.Taiko.UI
{
RelativeSizeAxes = Axes.Both,
},
judgementContainer = new Container<JudgementText>
judgementContainer = new Container<DrawableTaikoJudgementInfo>
{
RelativeSizeAxes = Axes.Both,
BlendingMode = BlendingMode.Additive
@ -186,7 +186,7 @@ namespace osu.Game.Modes.Taiko.UI
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,
Origin = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.BottomCentre : Anchor.TopCentre,

View File

@ -61,7 +61,7 @@
<Compile Include="TaikoScoreProcessor.cs" />
<Compile Include="UI\HitTarget.cs" />
<Compile Include="UI\InputDrum.cs" />
<Compile Include="UI\JudgementText.cs" />
<Compile Include="UI\DrawableTaikoJudgementInfo.cs" />
<Compile Include="UI\HitExplosion.cs" />
<Compile Include="UI\TaikoHitRenderer.cs" />
<Compile Include="UI\TaikoPlayfield.cs" />