1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 15:17:44 +08:00

Use FinishTransforms to init visual state

This commit is contained in:
OliBomby 2024-10-19 23:57:05 +02:00
parent 48da758c39
commit c03017438e

View File

@ -78,9 +78,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
base.LoadComplete();
samplesVisible.BindValueChanged(visible => this.FadeTo(visible.NewValue ? 1 : 0, 200, Easing.OutQuint));
this.FadeTo(samplesVisible.Value ? 1 : 0);
if (timelineBlueprintContainer != null)
contracted.BindTo(timelineBlueprintContainer.SamplePointContracted);
@ -99,6 +96,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
LabelContainer.CornerRadius = 8;
}
}, true);
samplesVisible.BindValueChanged(visible => this.FadeTo(visible.NewValue ? 1 : 0, 200, Easing.OutQuint), true);
FinishTransforms();
}
protected override void Dispose(bool isDisposing)