mirror of
https://github.com/ppy/osu.git
synced 2025-03-25 11:47:19 +08:00
DefaultHitErrorDisplay -> BarHitErrorDisplay
This commit is contained in:
parent
c4251d512e
commit
d337f9b482
@ -115,7 +115,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
});
|
||||
|
||||
Add(display = new DefaultHitErrorDisplay(overallDifficulty, hitWindows)
|
||||
Add(display = new BarHitErrorDisplay(overallDifficulty, hitWindows)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
@ -18,7 +18,7 @@ using System.Linq;
|
||||
|
||||
namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
{
|
||||
public class DefaultHitErrorDisplay : HitErrorDisplay
|
||||
public class BarHitErrorDisplay : HitErrorDisplay
|
||||
{
|
||||
private const int stored_judgements_amount = 5;
|
||||
private const int bar_width = 3;
|
||||
@ -34,7 +34,7 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
private readonly Queue<double> judgementOffsets = new Queue<double>();
|
||||
private readonly double maxHitWindows;
|
||||
|
||||
public DefaultHitErrorDisplay(float overallDifficulty, HitWindows hitWindows, bool reversed = false)
|
||||
public BarHitErrorDisplay(float overallDifficulty, HitWindows hitWindows, bool reversed = false)
|
||||
: base(overallDifficulty, hitWindows)
|
||||
{
|
||||
maxHitWindows = HitWindows.Meh == 0 ? HitWindows.Good : HitWindows.Meh;
|
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
|
||||
private void createNew(bool reversed = false)
|
||||
{
|
||||
var display = new DefaultHitErrorDisplay(overallDifficulty, hitWindows, reversed)
|
||||
var display = new BarHitErrorDisplay(overallDifficulty, hitWindows, reversed)
|
||||
{
|
||||
Margin = new MarginPadding(margin),
|
||||
Anchor = reversed ? Anchor.CentreRight : Anchor.CentreLeft,
|
||||
|
Loading…
x
Reference in New Issue
Block a user