mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 01:27:20 +08:00
Merge pull request #25759 from Givikap120/arod_rate_adjust
Fix adjusted attributes tooltip not updating without mods
This commit is contained in:
commit
73c0a0ecb4
@ -220,7 +220,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
public void TestSelectedModsDontAffectStatistics()
|
public void TestSelectedModsDontAffectStatistics()
|
||||||
{
|
{
|
||||||
AddStep("show map", () => overlay.ShowBeatmapSet(getBeatmapSet()));
|
AddStep("show map", () => overlay.ShowBeatmapSet(getBeatmapSet()));
|
||||||
AddAssert("AR displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value == (0, null));
|
AddAssert("AR displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value, () => Is.EqualTo((0, 0)));
|
||||||
AddStep("set AR10 diff adjust", () => SelectedMods.Value = new[]
|
AddStep("set AR10 diff adjust", () => SelectedMods.Value = new[]
|
||||||
{
|
{
|
||||||
new OsuModDifficultyAdjust
|
new OsuModDifficultyAdjust
|
||||||
@ -228,7 +228,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
ApproachRate = { Value = 10 }
|
ApproachRate = { Value = 10 }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
AddAssert("AR still displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value == (0, null));
|
AddAssert("AR still displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value, () => Is.EqualTo((0, 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -89,10 +89,10 @@ namespace osu.Game.Overlays.Mods
|
|||||||
if (originalDifficulty == null || adjustedDifficulty == null)
|
if (originalDifficulty == null || adjustedDifficulty == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
attemptAdd("AR", bd => bd.ApproachRate);
|
|
||||||
attemptAdd("OD", bd => bd.OverallDifficulty);
|
|
||||||
attemptAdd("CS", bd => bd.CircleSize);
|
attemptAdd("CS", bd => bd.CircleSize);
|
||||||
attemptAdd("HP", bd => bd.DrainRate);
|
attemptAdd("HP", bd => bd.DrainRate);
|
||||||
|
attemptAdd("OD", bd => bd.OverallDifficulty);
|
||||||
|
attemptAdd("AR", bd => bd.ApproachRate);
|
||||||
|
|
||||||
if (attributesFillFlow.Any())
|
if (attributesFillFlow.Any())
|
||||||
content.Show();
|
content.Show();
|
||||||
|
@ -95,8 +95,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
circleSizeDisplay = new VerticalAttributeDisplay("CS") { Shear = new Vector2(-shear, 0), },
|
circleSizeDisplay = new VerticalAttributeDisplay("CS") { Shear = new Vector2(-shear, 0), },
|
||||||
drainRateDisplay = new VerticalAttributeDisplay("HP") { Shear = new Vector2(-shear, 0), },
|
drainRateDisplay = new VerticalAttributeDisplay("HP") { Shear = new Vector2(-shear, 0), },
|
||||||
approachRateDisplay = new VerticalAttributeDisplay("AR") { Shear = new Vector2(-shear, 0), },
|
|
||||||
overallDifficultyDisplay = new VerticalAttributeDisplay("OD") { Shear = new Vector2(-shear, 0), },
|
overallDifficultyDisplay = new VerticalAttributeDisplay("OD") { Shear = new Vector2(-shear, 0), },
|
||||||
|
approachRateDisplay = new VerticalAttributeDisplay("AR") { Shear = new Vector2(-shear, 0), },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,8 +127,7 @@ namespace osu.Game.Screens.Select.Details
|
|||||||
|
|
||||||
IRulesetInfo ruleset = gameRuleset?.Value ?? beatmapInfo.Ruleset;
|
IRulesetInfo ruleset = gameRuleset?.Value ?? beatmapInfo.Ruleset;
|
||||||
|
|
||||||
if (baseDifficulty != null &&
|
if (baseDifficulty != null)
|
||||||
(mods.Value.Any(m => m is IApplicableToDifficulty) || mods.Value.Any(m => m is IApplicableToRate)))
|
|
||||||
{
|
{
|
||||||
BeatmapDifficulty originalDifficulty = new BeatmapDifficulty(baseDifficulty);
|
BeatmapDifficulty originalDifficulty = new BeatmapDifficulty(baseDifficulty);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user