mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 19:22:58 +08:00
Update to consume framework fixes
This commit is contained in:
parent
f9d6aed2df
commit
a11c74d600
@ -76,7 +76,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
private OsuButton deleteButton;
|
private OsuButton deleteButton;
|
||||||
private ControlPointTable table;
|
private ControlPointTable table;
|
||||||
|
|
||||||
private BindableList<ControlPointGroup> controlGroups;
|
private IBindableList<ControlPointGroup> controlGroups;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private EditorClock clock { get; set; }
|
private EditorClock clock { get; set; }
|
||||||
@ -141,8 +141,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
|
|
||||||
selectedGroup.BindValueChanged(selected => { deleteButton.Enabled.Value = selected.NewValue != null; }, true);
|
selectedGroup.BindValueChanged(selected => { deleteButton.Enabled.Value = selected.NewValue != null; }, true);
|
||||||
|
|
||||||
// todo: remove cast after https://github.com/ppy/osu-framework/pull/3906 is merged
|
controlGroups = Beatmap.Value.Beatmap.ControlPointInfo.Groups.GetBoundCopy();
|
||||||
controlGroups = (BindableList<ControlPointGroup>)Beatmap.Value.Beatmap.ControlPointInfo.Groups.GetBoundCopy();
|
|
||||||
|
|
||||||
controlGroups.BindCollectionChanged((sender, args) =>
|
controlGroups.BindCollectionChanged((sender, args) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user