Add ComboIndexWithOffsetsBindable and bind similar to ComboIndexBindable

This commit is contained in:
Salman Ahmed
2021-07-22 16:22:42 +03:00
parent cd7b90363a
commit 523c154f15
7 changed files with 41 additions and 3 deletions

View File

@ -37,7 +37,10 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private readonly Bindable<double> startTime;
private Bindable<int> indexInCurrentComboBindable;
private Bindable<int> comboIndexBindable;
private Bindable<int> comboIndexWithOffsetsBindable;
private Bindable<Color4> displayColourBindable;
private readonly ExtendableCircle circle;
@ -122,6 +125,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
comboIndexBindable = comboInfo.ComboIndexBindable.GetBoundCopy();
comboIndexBindable.BindValueChanged(_ => updateColour(), true);
comboIndexWithOffsetsBindable = comboInfo.ComboIndexWithOffsetsBindable.GetBoundCopy();
comboIndexWithOffsetsBindable.BindValueChanged(_ => updateColour(), true);
skin.SourceChanged += updateColour;
break;
}