mirror of
https://github.com/ppy/osu
synced 2025-01-01 20:02:14 +00:00
Adjust customisation transition slightly
This commit is contained in:
parent
b5df350007
commit
bc53adb72a
@ -234,12 +234,14 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
private void updateCustomisationVisualState()
|
||||
{
|
||||
grid.FadeColour(customisationVisible.Value ? Colour4.Gray : Colour4.White, 800, Easing.OutQuint);
|
||||
const double transition_duration = 700;
|
||||
|
||||
grid.FadeColour(customisationVisible.Value ? Colour4.Gray : Colour4.White, transition_duration, Easing.InOutCubic);
|
||||
|
||||
float modAreaHeight = customisationVisible.Value ? ModSettingsArea.HEIGHT : 0;
|
||||
|
||||
modSettingsArea.ResizeHeightTo(modAreaHeight, 800, Easing.InOutCubic);
|
||||
mainContent.TransformTo(nameof(Margin), new MarginPadding { Bottom = modAreaHeight }, 800, Easing.InOutCubic);
|
||||
modSettingsArea.ResizeHeightTo(modAreaHeight, transition_duration, Easing.InOutCubic);
|
||||
mainContent.TransformTo(nameof(Margin), new MarginPadding { Bottom = modAreaHeight }, transition_duration, Easing.InOutCubic);
|
||||
}
|
||||
|
||||
private bool selectionBindableSyncInProgress;
|
||||
|
Loading…
Reference in New Issue
Block a user