mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Merge pull request #3611 from plankp/reduce-handle-height
Reduce height of song progress handle
This commit is contained in:
commit
98633f02f3
@ -134,11 +134,13 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
PlayerSettingsOverlay.Show();
|
||||
ModDisplay.FadeIn(200);
|
||||
KeyCounter.Margin = new MarginPadding(10) { Bottom = 30 };
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerSettingsOverlay.Hide();
|
||||
ModDisplay.Delay(2000).FadeOut(200);
|
||||
KeyCounter.Margin = new MarginPadding(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
private const int bottom_bar_height = 5;
|
||||
|
||||
private static readonly Vector2 handle_size = new Vector2(14, 25);
|
||||
private static readonly Vector2 handle_size = new Vector2(10, 18);
|
||||
|
||||
private const float transition_duration = 200;
|
||||
|
||||
@ -135,6 +135,8 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
bar.FadeTo(allowSeeking ? 1 : 0, transition_duration, Easing.In);
|
||||
this.MoveTo(new Vector2(0, allowSeeking ? 0 : bottom_bar_height), transition_duration, Easing.In);
|
||||
|
||||
info.Margin = new MarginPadding { Bottom = Height - (allowSeeking ? 0 : handle_size.Y) };
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
|
Loading…
Reference in New Issue
Block a user