mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 05:36:05 +08:00
CI fixes
This commit is contained in:
parent
6d84523bc0
commit
1bff103d32
@ -13,6 +13,7 @@ using System.Collections.Generic;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using osu.Framework.MathUtils;
|
||||
using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Gameplay
|
||||
{
|
||||
@ -95,7 +96,11 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
private void recreateDisplay(HitWindows hitWindows, float overallDifficulty)
|
||||
{
|
||||
Clear();
|
||||
Add(display = new DefaultHitErrorDisplay(overallDifficulty, hitWindows));
|
||||
Add(display = new DefaultHitErrorDisplay(overallDifficulty, hitWindows)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
});
|
||||
}
|
||||
|
||||
private void newJudgement(float offset = 0)
|
||||
|
@ -5,7 +5,6 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Input.Events;
|
||||
|
@ -37,8 +37,6 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
: base(overallDifficulty, hitWindows)
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Anchor = reversed ? Anchor.CentreRight : Anchor.CentreLeft;
|
||||
Origin = reversed ? Anchor.CentreRight : Anchor.CentreLeft;
|
||||
|
||||
AddInternal(new FillFlowContainer
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
{
|
||||
protected readonly HitWindows HitWindows;
|
||||
|
||||
public HitErrorDisplay(float overallDifficulty, HitWindows hitWindows)
|
||||
protected HitErrorDisplay(float overallDifficulty, HitWindows hitWindows)
|
||||
{
|
||||
HitWindows = hitWindows;
|
||||
HitWindows.SetDifficulty(overallDifficulty);
|
||||
|
@ -9,7 +9,6 @@ using osu.Framework.Bindables;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using System.Linq;
|
||||
|
||||
namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
{
|
||||
@ -29,11 +28,15 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
|
||||
{
|
||||
new DefaultHitErrorDisplay(overallDifficulty, processor.CreateHitWindows())
|
||||
{
|
||||
Margin = new MarginPadding { Left = margin }
|
||||
Margin = new MarginPadding { Left = margin },
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
},
|
||||
new DefaultHitErrorDisplay(overallDifficulty, processor.CreateHitWindows(), true)
|
||||
{
|
||||
Margin = new MarginPadding { Right = margin }
|
||||
Margin = new MarginPadding { Right = margin },
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user