mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Don't show calibration controls for autoplay
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
@ -20,6 +21,7 @@ using osu.Game.Scoring;
|
|||||||
using osu.Game.Screens.Ranking.Statistics;
|
using osu.Game.Screens.Ranking.Statistics;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osu.Game.Localisation;
|
using osu.Game.Localisation;
|
||||||
|
using osu.Game.Rulesets.Mods;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play.PlayerSettings
|
namespace osu.Game.Screens.Play.PlayerSettings
|
||||||
{
|
{
|
||||||
@ -146,11 +148,17 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
|
|
||||||
private void scoreChanged(ValueChangedEvent<ScoreInfo> score)
|
private void scoreChanged(ValueChangedEvent<ScoreInfo> score)
|
||||||
{
|
{
|
||||||
var hitEvents = score.NewValue?.HitEvents;
|
|
||||||
|
|
||||||
referenceScoreContainer.Clear();
|
referenceScoreContainer.Clear();
|
||||||
|
|
||||||
if (!(hitEvents?.CalculateAverageHitError() is double average))
|
if (score.NewValue == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (score.NewValue.Mods.Any(m => m is ModAutoplay))
|
||||||
|
return;
|
||||||
|
|
||||||
|
var hitEvents = score.NewValue.HitEvents;
|
||||||
|
|
||||||
|
if (!(hitEvents.CalculateAverageHitError() is double average))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
referenceScoreContainer.Children = new Drawable[]
|
referenceScoreContainer.Children = new Drawable[]
|
||||||
|
Reference in New Issue
Block a user