mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 14:13:18 +08:00
Move cache to more appropriate location
This commit is contained in:
parent
7d0388c55c
commit
04705504c5
@ -225,7 +225,6 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
DrawableRuleset = ruleset.CreateDrawableRulesetWith(playableBeatmap, gameplayMods);
|
||||
dependencies.CacheAs(DrawableRuleset);
|
||||
dependencies.CacheAs(DrawableRuleset.FrameStableClock);
|
||||
|
||||
ScoreProcessor = ruleset.CreateScoreProcessor();
|
||||
ScoreProcessor.Mods.Value = gameplayMods;
|
||||
@ -310,6 +309,8 @@ namespace osu.Game.Screens.Play
|
||||
});
|
||||
}
|
||||
|
||||
dependencies.CacheAs(DrawableRuleset.FrameStableClock);
|
||||
|
||||
// add the overlay components as a separate step as they proxy some elements from the above underlay/gameplay components.
|
||||
// also give the overlays the ruleset skin provider to allow rulesets to potentially override HUD elements (used to disable combo counters etc.)
|
||||
// we may want to limit this in the future to disallow rulesets from outright replacing elements the user expects to be there.
|
||||
|
Loading…
Reference in New Issue
Block a user