mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:07:52 +08:00
Add comment explaining why width is limited to the button area
Same comment as a47ccb8edd/osu.Game/Screens/Select/BeatmapInfoWedgeV2.cs (L91-L92)
.
This commit is contained in:
parent
b309aad895
commit
f8a841e907
@ -169,6 +169,8 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
float mainAreaWidth = Width - buttonAreaWidth;
|
||||
|
||||
mainArea.ResizeWidthTo(mainAreaWidth, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||
|
||||
// By limiting the width we avoid this box showing up as an outline around the drawables that are on top of it.
|
||||
background.ResizeWidthTo(buttonAreaWidth + BeatmapCard.CORNER_RADIUS, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||
|
||||
background.FadeColour(downloadTracker.State.Value == DownloadState.LocallyAvailable ? colours.Lime0 : colourProvider.Background3, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user