mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Fix test scene not updating all star counters
This commit is contained in:
parent
a8c9c2bf17
commit
340edf68d3
@ -63,6 +63,12 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
|
||||
AddSliderStep("change star difficulty", 0, 11.9, 5.55, v =>
|
||||
{
|
||||
// Difficulty cache lookup is a pain in the ass to work with.
|
||||
// This logic is ugly and needs to be reconsidered.
|
||||
|
||||
if (infoWedge.Info != null)
|
||||
infoWedge.Info!.ActualStars.Value = v;
|
||||
|
||||
foreach (var hasCurrentValue in infoWedge.Info.ChildrenOfType<IHasCurrentValue<StarDifficulty>>())
|
||||
hasCurrentValue.Current.Value = new StarDifficulty(v, 0);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user