mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
Use less DI where we already have access to LadderInfo
This commit is contained in:
parent
d8ed402779
commit
084c2252cb
@ -94,10 +94,10 @@ namespace osu.Game.Tournament.Screens.MapPool
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder, MatchIPCInfo ipc)
|
private void load(MatchIPCInfo ipc)
|
||||||
{
|
{
|
||||||
currentMatch.BindValueChanged(matchChanged);
|
currentMatch.BindValueChanged(matchChanged);
|
||||||
currentMatch.BindTo(ladder.CurrentMatch);
|
currentMatch.BindTo(LadderInfo.CurrentMatch);
|
||||||
|
|
||||||
ipc.Beatmap.BindValueChanged(beatmapChanged);
|
ipc.Beatmap.BindValueChanged(beatmapChanged);
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
|||||||
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder, Storage storage)
|
private void load(Storage storage)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
|||||||
};
|
};
|
||||||
|
|
||||||
currentMatch.BindValueChanged(matchChanged);
|
currentMatch.BindValueChanged(matchChanged);
|
||||||
currentMatch.BindTo(ladder.CurrentMatch);
|
currentMatch.BindTo(LadderInfo.CurrentMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void matchChanged(ValueChangedEvent<MatchPairing> pairing)
|
private void matchChanged(ValueChangedEvent<MatchPairing> pairing)
|
||||||
|
Loading…
Reference in New Issue
Block a user