mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 15:32:54 +08:00
Bind with global ruleset for now
This commit is contained in:
parent
556131cd5f
commit
81f9103f9c
@ -23,8 +23,6 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected Bindable<RankingsScope> Scope => header.Current;
|
||||
|
||||
private Bindable<RulesetInfo> ruleset => header.Ruleset;
|
||||
|
||||
private readonly BasicScrollContainer scrollFlow;
|
||||
private readonly Container contentContainer;
|
||||
private readonly DimmedLoadingLayer loading;
|
||||
@ -92,10 +90,15 @@ namespace osu.Game.Overlays
|
||||
background.Colour = ColourProvider.Background5;
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
private Bindable<RulesetInfo> ruleset { get; set; }
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
header.Ruleset.BindTo(ruleset);
|
||||
|
||||
Country.BindValueChanged(_ =>
|
||||
{
|
||||
// if a country is requested, force performance scope.
|
||||
@ -121,6 +124,8 @@ namespace osu.Game.Overlays
|
||||
|
||||
Scheduler.AddOnce(loadNewContent);
|
||||
});
|
||||
|
||||
Scheduler.AddOnce(loadNewContent);
|
||||
}
|
||||
|
||||
public void ShowCountry(Country requested)
|
||||
@ -130,7 +135,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
Show();
|
||||
|
||||
Schedule(() => Country.Value = requested);
|
||||
Country.Value = requested;
|
||||
}
|
||||
|
||||
private void loadNewContent()
|
||||
|
Loading…
Reference in New Issue
Block a user