mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
DefaultHitErrorDisplay -> BarHitErrorDisplay
This commit is contained in:
@ -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,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -18,7 +18,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Play.HitErrorDisplay
|
namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||||
{
|
{
|
||||||
public class DefaultHitErrorDisplay : HitErrorDisplay
|
public class BarHitErrorDisplay : HitErrorDisplay
|
||||||
{
|
{
|
||||||
private const int stored_judgements_amount = 5;
|
private const int stored_judgements_amount = 5;
|
||||||
private const int bar_width = 3;
|
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 Queue<double> judgementOffsets = new Queue<double>();
|
||||||
private readonly double maxHitWindows;
|
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)
|
: base(overallDifficulty, hitWindows)
|
||||||
{
|
{
|
||||||
maxHitWindows = HitWindows.Meh == 0 ? HitWindows.Good : HitWindows.Meh;
|
maxHitWindows = HitWindows.Meh == 0 ? HitWindows.Good : HitWindows.Meh;
|
@ -80,7 +80,7 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
|||||||
|
|
||||||
private void createNew(bool reversed = false)
|
private void createNew(bool reversed = false)
|
||||||
{
|
{
|
||||||
var display = new DefaultHitErrorDisplay(overallDifficulty, hitWindows, reversed)
|
var display = new BarHitErrorDisplay(overallDifficulty, hitWindows, reversed)
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding(margin),
|
Margin = new MarginPadding(margin),
|
||||||
Anchor = reversed ? Anchor.CentreRight : Anchor.CentreLeft,
|
Anchor = reversed ? Anchor.CentreRight : Anchor.CentreLeft,
|
||||||
|
Reference in New Issue
Block a user