mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 20:53:04 +08:00
Fix non-unbinding bindable bind
This commit is contained in:
parent
a31507ff0e
commit
6ff29c1ea4
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Video;
|
using osu.Framework.Graphics.Video;
|
||||||
@ -21,11 +22,10 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
|||||||
{
|
{
|
||||||
private Container mainContainer;
|
private Container mainContainer;
|
||||||
|
|
||||||
[Resolved]
|
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
||||||
private LadderInfo ladderInfo { get; set; }
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(Storage storage)
|
private void load(LadderInfo ladder, Storage storage)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
@ -42,7 +42,8 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ladderInfo.CurrentMatch.BindValueChanged(matchChanged, true);
|
currentMatch.BindValueChanged(matchChanged);
|
||||||
|
currentMatch.BindTo(ladder.CurrentMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void matchChanged(MatchPairing pairing)
|
private void matchChanged(MatchPairing pairing)
|
||||||
|
Loading…
Reference in New Issue
Block a user