mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
Remove transform overhead from OsuDropdown
on initial display
This commit is contained in:
parent
c0130da235
commit
92ad66c86c
@ -69,6 +69,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
BackgroundColour = Color4.Black.Opacity(0.5f);
|
||||
|
||||
MaskingContainer.CornerRadius = corner_radius;
|
||||
Alpha = 0;
|
||||
|
||||
// todo: this uses the same styling as OsuMenu. hopefully we can just use OsuMenu in the future with some refactoring
|
||||
ItemsContainer.Padding = new MarginPadding(5);
|
||||
@ -94,9 +95,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override void AnimateClose()
|
||||
{
|
||||
this.FadeOut(300, Easing.OutQuint);
|
||||
if (wasOpened)
|
||||
{
|
||||
this.FadeOut(300, Easing.OutQuint);
|
||||
sampleClose?.Play();
|
||||
}
|
||||
}
|
||||
|
||||
// todo: this uses the same styling as OsuMenu. hopefully we can just use OsuMenu in the future with some refactoring
|
||||
|
Loading…
Reference in New Issue
Block a user