mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Resolve room settings layout issues
This commit is contained in:
parent
228ad98b39
commit
744b6749d1
@ -31,6 +31,7 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Masking = true;
|
||||
CornerRadius = 10;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -47,12 +48,14 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
|
||||
{
|
||||
base.PopIn();
|
||||
Settings.MoveToY(0, TRANSITION_DURATION, Easing.OutQuint);
|
||||
Settings.FadeIn(TRANSITION_DURATION / 2);
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
base.PopOut();
|
||||
Settings.MoveToY(-1, TRANSITION_DURATION, Easing.InSine);
|
||||
Settings.Delay(TRANSITION_DURATION / 2).FadeOut(TRANSITION_DURATION / 2);
|
||||
}
|
||||
|
||||
public bool OnPressed(GlobalAction action)
|
||||
|
@ -165,10 +165,16 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
}
|
||||
}
|
||||
},
|
||||
settingsOverlay = CreateRoomSettingsOverlay().With(s =>
|
||||
new Container
|
||||
{
|
||||
s.State.Value = room.RoomID.Value == null ? Visibility.Visible : Visibility.Hidden;
|
||||
})
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
// Resolves 1px masking errors between the settings overlay and the room panel.
|
||||
Padding = new MarginPadding(-1),
|
||||
Child = settingsOverlay = CreateRoomSettingsOverlay().With(s =>
|
||||
{
|
||||
s.State.Value = room.RoomID.Value == null ? Visibility.Visible : Visibility.Hidden;
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user